home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / web2c.kpathsea-2.1.help < prev    next >
Text File  |  1994-09-30  |  110KB  |  3,658 lines

  1. ftp.cs.umb.edu:pub/tex/web2c.kpathsea-2.1.patch, 30sep94.
  2.  
  3. This patch will allow you to take advantage of kpathsea-2.1's
  4. improvements over kpathsea-1.8 (faster path searching, runtime
  5. configuration files, etc.---see kpathsea/NEWS).  It will work only
  6. with the version of kpathsea supplied with dviljk-2.1, dvipsk-5.58a,
  7. or xdvik-18b.  It will not work with previous or future versions of
  8. kpathsea, at least not without modification.  Use it at your own risk;
  9. this patch has undergone very little testing so it may introduce some
  10. new bugs into your TeX or MF.  You should apply it only if you are
  11. prepared to debug and fix any unexpected problems which might occur.
  12.  
  13. Please direct questions about this patch to the tex-k@cs.umb.edu
  14. mailing list (in other words, not to kb@cs.umb.edu).  Thanks.
  15.  
  16. Here are the instructions for upgrading web2c-6.1 to work with
  17. kpathsea-2.1.
  18.  
  19. 1.  Fetch one of the following tar files, `dviljk-2.1.tar.gz',
  20.     `dvipsk-5.58a.tar.gz', or `xdvik-18b.tar.gz', from your nearest
  21.     CTAN archive.  It does not matter which tar file you fetch since
  22.     they all have the same version of kpathsea.  If you don't plan to
  23.     keep around the dviljk, dvipsk, or xdvik subdirectory, you might
  24.     as well get the smallest tar file: `xdvik-18b.tar.gz'.
  25.  
  26. 2.  Fetch the tar files `web-6.1.tar.gz' and `web2c-6.1.tar.gz' from
  27.     your nearest CTAN archive.
  28.  
  29. 3.  Unpack all of the tar files in the same directory.  You will have
  30.     two new directories: web2c-6.1 and one of dviljk-2.1,
  31.     dvipsk-5.58a, or xdvik-18b depending on which tar file you chose
  32.     in step 1.
  33.  
  34. 4.  Move the subdirectory web2c-6.1/web2c into dviljk-2.1,
  35.     dvipsk-5.58a, or xdvik-18b:
  36.  
  37.     mv web2c-6.1/web2c xdvik-18b
  38.  
  39. 5.  Rename the directory now containing the web2c subdirectory to
  40.     web2c-6.1a or whatever you choose:
  41.  
  42.     mv xdvik-18b web2c-6.1a
  43.  
  44. 6.  You don't need the remaining files in web2c-6.1 or the
  45.     subdirectories dviljk, dvipsk, or xdvik to build the subdirectory
  46.     web2c, so you can delete them if you wish:
  47.  
  48.     rm -rf web2c-6.1
  49.     rm -rf web2c-6.1a/xdvik
  50.  
  51. 7.  Patch a few files in the web2c subdirectory.  The patch is
  52.     appended below.  First move into the directory containing the
  53.     web2c subdirectory and then run patch:
  54.  
  55.     cd web2c-6.1a
  56.     patch -p -s < web2c.kpathsea-2.1.patch
  57.  
  58.     This patch was made so that it won't matter what you call the
  59.     directory containing the web2c subdirectory since you'll be inside
  60.     it before applying the patch.  You shouldn't get any output from
  61.     patch unless an error occurs.
  62.  
  63. 8.  Now follow the normal procedure for installation of web2c-6.1.
  64.     You will have to edit the fmts variable in web2c/Makefile.in if
  65.     you want to build an additional format besides tex.fmt.  You will
  66.     need to have all of the latex input files installed somewhere in
  67.     your /usr/local/lib/texmf if you want to make the latex format.  I
  68.     prefer to build and install both the latex input files and format
  69.     from a separate source tree (ftp to your nearest CTAN archive, cd
  70.     to the directory /tex-archive/macros/latex, get base.tar.gz and
  71.     package.tar.gz, and follow the directions therein for building and
  72.     installing latex).
  73.  
  74. *** kpathsea/tex-file.c.save    Fri Aug 26 06:07:20 1994
  75. --- kpathsea/tex-file.c    Fri Sep 23 15:28:58 1994
  76. ***************
  77. *** 175,178 ****
  78. --- 175,179 ----
  79.         break;
  80.       case kpse_any_glyph_format:
  81. +       INIT_MT ("MakeTeXPK", MAKETEXPK_SPEC);
  82.         INIT_FORMAT ("bitmap", true, DEFAULT_GLYPHFONTS, KPSE_GLYPH_ENVS);
  83.         FMT_INFO.suffix_search_only = true;
  84. *** kpathsea/tex-file.h.save    Thu Aug 25 14:36:10 1994
  85. --- kpathsea/tex-file.h    Fri Sep 23 14:03:10 1994
  86. ***************
  87. *** 60,64 ****
  88.     kpse_dvips_config_format,
  89.     kpse_dvips_header_format,
  90. !   kpse_last_format = kpse_dvips_header_format
  91.   } kpse_file_format_type;
  92.   
  93. --- 60,64 ----
  94.     kpse_dvips_config_format,
  95.     kpse_dvips_header_format,
  96. !   kpse_last_format
  97.   } kpse_file_format_type;
  98.   
  99. *** web2c/Makefile.in.save    Thu Feb  3 04:47:59 1994
  100. --- web2c/Makefile.in    Fri Sep 23 23:45:44 1994
  101. ***************
  102. *** 76,79 ****
  103. --- 76,80 ----
  104.   bases = mf.base cmmf.base
  105.   fmts = tex.fmt latex.fmt 
  106. + fmts = tex.fmt
  107.   # slitex.fmt etex.fmt amslatex.fmt amstex.fmt texinfo.fmt inrstex.fmt
  108.   # picplus.fmt
  109. ***************
  110. *** 125,131 ****
  111.   # wlibs is substituted by web2c's configure, LIBS by general configure
  112.   # routines, and the others by AC_FIND_XTRA.
  113. ! x_include_flags = @x_include_flags@
  114. ! x_lib_flags = @x_lib_flags@
  115. ! x_extra_libs = @x_extra_libs@
  116.   wlibs = @wlibs@
  117.   LIBS = @LIBS@ $(extralibs)
  118. --- 126,132 ----
  119.   # wlibs is substituted by web2c's configure, LIBS by general configure
  120.   # routines, and the others by AC_FIND_XTRA.
  121. ! x_include_flags = @X_CFLAGS@
  122. ! x_lib_flags = @X_LIBS@
  123. ! x_extra_libs = @X_EXTRA_LIBS@
  124.   wlibs = @wlibs@
  125.   LIBS = @LIBS@ $(extralibs)
  126. *** web2c/configure.in.save    Tue Feb  1 14:42:20 1994
  127. --- web2c/configure.in    Sat Sep 24 02:52:04 1994
  128. ***************
  129. *** 33,37 ****
  130.   dnl Must do this last, as the addition to DEFS in Autoconf 1.3 confuses
  131.   dnl the compiler.
  132. ! AC_DECLARE_YYTEXT
  133.   
  134.   echo checking for window system libraries
  135. --- 33,37 ----
  136.   dnl Must do this last, as the addition to DEFS in Autoconf 1.3 confuses
  137.   dnl the compiler.
  138. ! AC_YYTEXT_POINTER
  139.   
  140.   echo checking for window system libraries
  141. ***************
  142. *** 47,54 ****
  143.     AC_FIND_X
  144.     AC_FIND_XTRA
  145. !   if test -z "$Xextlib"; then
  146. !     AC_HAVE_LIBRARY(Xext, Xextlib=-lXext)
  147. !   fi
  148. !   wlibs="-lXt $Xextlib -lX11 $wlibs"
  149.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  150.   fi
  151. --- 47,51 ----
  152.     AC_FIND_X
  153.     AC_FIND_XTRA
  154. !   wlibs="-lXt $X_EXTRA_LIBS -lX11 $wlibs"
  155.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  156.   fi
  157. *** web2c/configure.save    Tue Feb  1 14:42:36 1994
  158. --- web2c/configure    Sat Sep 24 02:52:34 1994
  159. ***************
  160. *** 1,16 ****
  161.   #!/bin/sh
  162.   # Guess values for system-dependent variables and create Makefiles.
  163. ! # Generated automatically using autoconf.
  164. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  165.   
  166. ! # This program is free software; you can redistribute it and/or modify
  167. ! # it under the terms of the GNU General Public License as published by
  168. ! # the Free Software Foundation; either version 2, or (at your option)
  169.   # any later version.
  170.   
  171. ! # This program is distributed in the hope that it will be useful,
  172. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  173. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  174. ! # GNU General Public License for more details.
  175.   
  176.   # You should have received a copy of the GNU General Public License
  177. --- 1,16 ----
  178.   #!/bin/sh
  179.   # Guess values for system-dependent variables and create Makefiles.
  180. ! # Generated automatically using autoconf version 1.11 
  181. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  182.   
  183. ! # This configure script is free software; you can redistribute it and/or
  184. ! # modify it under the terms of the GNU General Public License as published
  185. ! # by the Free Software Foundation; either version 2, or (at your option)
  186.   # any later version.
  187.   
  188. ! # This script is distributed in the hope that it will be useful, but
  189. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  190. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  191. ! # Public License for more details.
  192.   
  193.   # You should have received a copy of the GNU General Public License
  194. ***************
  195. *** 18,132 ****
  196.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  197.   
  198. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  199. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  200. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, and
  201. ! # --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  202.   
  203. ! for arg
  204.   do
  205. -   # Handle --exec-prefix with a space before the argument.
  206. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  207. -   # Handle --host with a space before the argument.
  208. -   elif test x$next_host = xyes; then next_host=
  209. -   # Handle --prefix with a space before the argument.
  210. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  211. -   # Handle --srcdir with a space before the argument.
  212. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  213. -   else
  214. -     case $arg in
  215. -      # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  216. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  217. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  218. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  219. -     next_exec_prefix=yes ;;
  220. -      -gas | --gas | --ga | --g) ;;
  221. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  222. -      -host | --host | --hos | --ho | --h)
  223. -     next_host=yes ;;
  224. -      -nfp | --nfp | --nf) ;;
  225. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  226. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  227. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  228. -     next_prefix=yes ;;
  229. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  230. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  231. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  232. -     next_srcdir=yes ;;
  233. -      -with-* | --with-*)
  234. -        package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  235. -        # Reject names that aren't valid shell variable names.
  236. -        if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  237. -          echo "configure: $package: invalid package name" >&2; exit 1
  238. -        fi
  239. -        package=`echo $package| sed 's/-/_/g'`
  240. -        case "$arg" in
  241. -          *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  242. -          *) val=1 ;;
  243. -        esac
  244. -        eval "with_$package='$val'" ;;
  245.   
  246. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  247. !        verbose=yes ;;
  248.   
  249. !      *) ;;
  250.       esac
  251. !   fi
  252.   done
  253.   
  254. ! trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  255. ! trap 'rm -f confdefs*' 0
  256.   
  257.   # NLS nuisances.
  258.   # These must not be set unconditionally because not all systems understand
  259.   # e.g. LANG=C (notably SCO).
  260. ! if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  261. ! if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  262.   
  263. ! rm -f conftest* confdefs.h
  264.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  265.   echo > confdefs.h
  266. - compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  267.   
  268.   # A filename unique to this package, relative to the directory that
  269.   # configure is in, which we can look for to find out if srcdir is correct.
  270. ! unique_file=web2c/web2c.c
  271.   
  272.   # Find the source files, if location was not specified.
  273.   if test -z "$srcdir"; then
  274. !   srcdirdefaulted=yes
  275.     # Try the directory containing this script, then `..'.
  276. !   prog=$0
  277. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  278. !   test "X$confdir" = "X$prog" && confdir=.
  279. !   srcdir=$confdir
  280. !   if test ! -r $srcdir/$unique_file; then
  281.       srcdir=..
  282.     fi
  283.   fi
  284. ! if test ! -r $srcdir/$unique_file; then
  285. !   if test x$srcdirdefaulted = xyes; then
  286. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  287.     else
  288. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  289.     fi
  290. -   exit 1
  291.   fi
  292. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  293. ! # But we can't avoid them for `..', to make subdirectories work.
  294. ! case $srcdir in
  295. !   .|/*|~*) ;;
  296. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  297. ! esac
  298.   
  299.   
  300. - # Save the original args to write them into config.status later.
  301. - configure_args="$*"
  302.   
  303.   
  304. --- 18,319 ----
  305.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  306.   
  307. ! # Save the original args to write them into config.status later.
  308. ! configure_args="$*"
  309.   
  310. ! # Only options that might do something get documented.
  311. ! ac_usage="Usage: configure [options] [host]
  312. ! Options: [defaults in brackets after descriptions]
  313. ! --build=BUILD        configure for building on BUILD [BUILD=HOST]
  314. ! --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  315. ! --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  316. ! --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  317. ! --help            print this message
  318. ! --host=HOST        configure for HOST [guessed]
  319. ! --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  320. ! --quiet, --silent    do not print \`checking for...' messages
  321. ! --srcdir=DIR        find the sources in DIR [configure dir or ..]
  322. ! --target=TARGET        configure for TARGET [TARGET=HOST]
  323. ! --verbose        print results of checks
  324. ! --version        print the version of autoconf that created configure
  325. ! --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  326. ! --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  327. ! --x-includes=DIR    X include files are in DIR
  328. ! --x-libraries=DIR    X library files are in DIR"
  329. ! # Initialize some variables set by options.
  330. ! # The variables have the same names as the options, with
  331. ! # dashes changed to underlines.
  332. ! build=NONE
  333. ! exec_prefix=
  334. ! host=NONE
  335. ! no_create=
  336. ! nonopt=NONE
  337. ! norecursion=
  338. ! prefix=
  339. ! program_prefix=
  340. ! program_suffix=
  341. ! program_transform_name=
  342. ! silent=
  343. ! srcdir=
  344. ! target=NONE
  345. ! verbose=
  346. ! x_includes=
  347. ! x_libraries=
  348. ! ac_prev=
  349. ! for ac_option
  350.   do
  351.   
  352. !   # If the previous option needs an argument, assign it.
  353. !   if test -n "$ac_prev"; then
  354. !     eval "$ac_prev=\$ac_option"
  355. !     ac_prev=
  356. !     continue
  357. !   fi
  358. !   # Accept (but ignore some of) the important Cygnus configure
  359. !   # options, so we can diagnose typos.
  360. !   case "$ac_option" in
  361. !   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  362. !   *) ac_optarg= ;;
  363. !   esac
  364. !   case "$ac_option" in
  365. !   -build | --build | --buil | --bui | --bu | --b)
  366. !     ac_prev=build ;;
  367. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  368. !     build="$ac_optarg" ;;
  369. !   -disable-* | --disable-*)
  370. !     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  371. !     # Reject names that aren't valid shell variable names.
  372. !     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  373. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  374. !     fi
  375. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  376. !     eval "enable_${ac_feature}=no" ;;
  377.   
  378. !   -enable-* | --enable-*)
  379. !     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  380. !     # Reject names that aren't valid shell variable names.
  381. !     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  382. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  383. !     fi
  384. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  385. !     case "$ac_option" in
  386. !       *=*) ;;
  387. !       *) ac_optarg=yes ;;
  388.       esac
  389. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  390. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  391. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  392. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  393. !   | --exec | --exe | --ex)
  394. !     ac_prev=exec_prefix ;;
  395. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  396. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  397. !   | --exec=* | --exe=* | --ex=*)
  398. !     exec_prefix="$ac_optarg" ;;
  399. !   -gas | --gas | --ga | --g)
  400. !     with_gas=yes ;; # Obsolete; use --with-gas.
  401. !   -help | --help | --hel | --he)
  402. !     cat << EOF
  403. ! $ac_usage
  404. ! EOF
  405. !     exit 0 ;;
  406. !   -host | --host | --hos | --ho)
  407. !     ac_prev=host ;;
  408. !   -host=* | --host=* | --hos=* | --ho=*)
  409. !     host="$ac_optarg" ;;
  410. !   -nfp | --nfp | --nf)
  411. !     with_fp=no ;; # Obsolete; use --without-fp.
  412. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  413. !   | --no-cr | --no-c)
  414. !     no_create=yes ;;
  415. !   -norecursion | --norecursion | --norecursio | --norecursi \
  416. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  417. !     norecursion=yes ;;
  418. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  419. !     ac_prev=prefix ;;
  420. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  421. !     prefix="$ac_optarg" ;;
  422. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  423. !   | --program-pre | --program-pr | --program-p)
  424. !     ac_prev=program_prefix ;;
  425. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  426. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  427. !     program_prefix="$ac_optarg" ;;
  428. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  429. !   | --program-suf | --program-su | --program-s)
  430. !     ac_prev=program_suffix ;;
  431. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  432. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  433. !     program_suffix="$ac_optarg" ;;
  434. !   -program-transform-name | --program-transform-name \
  435. !   | --program-transform-nam | --program-transform-na \
  436. !   | --program-transform-n | --program-transform- \
  437. !   | --program-transform | --program-transfor \
  438. !   | --program-transfo | --program-transf \
  439. !   | --program-trans | --program-tran \
  440. !   | --progr-tra | --program-tr | --program-t)
  441. !     ac_prev=program_transform_name ;;
  442. !   -program-transform-name=* | --program-transform-name=* \
  443. !   | --program-transform-nam=* | --program-transform-na=* \
  444. !   | --program-transform-n=* | --program-transform-=* \
  445. !   | --program-transform=* | --program-transfor=* \
  446. !   | --program-transfo=* | --program-transf=* \
  447. !   | --program-trans=* | --program-tran=* \
  448. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  449. !     program_transform_name="$ac_optarg" ;;
  450. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  451. !   | -silent | --silent | --silen | --sile | --sil)
  452. !     silent=yes ;;
  453. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  454. !     ac_prev=srcdir ;;
  455. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  456. !     srcdir="$ac_optarg" ;;
  457. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  458. !     ac_prev=target ;;
  459. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  460. !     target="$ac_optarg" ;;
  461. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  462. !     verbose=yes ;;
  463. !   -version | --version | --versio | --versi | --vers)
  464. !     echo "configure generated by autoconf version 1.11"
  465. !     exit 0 ;;
  466. !   -with-* | --with-*)
  467. !     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  468. !     # Reject names that aren't valid shell variable names.
  469. !     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  470. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  471. !     fi
  472. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  473. !     case "$ac_option" in
  474. !       *=*) ;;
  475. !       *) ac_optarg=yes ;;
  476. !     esac
  477. !     eval "with_${ac_package}='$ac_optarg'" ;;
  478. !   -without-* | --without-*)
  479. !     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  480. !     # Reject names that aren't valid shell variable names.
  481. !     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  482. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  483. !     fi
  484. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  485. !     eval "with_${ac_package}=no" ;;
  486. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  487. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  488. !   | --x-incl | --x-inc | --x-in | --x-i)
  489. !     ac_prev=x_includes ;;
  490. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  491. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  492. !     x_includes="$ac_optarg" ;;
  493. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  494. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  495. !     ac_prev=x_libraries ;;
  496. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  497. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  498. !     x_libraries="$ac_optarg" ;;
  499. !   -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  500. !     ;;
  501. !   *) 
  502. !     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  503. !       echo "configure: warning: $ac_option: invalid host type" >&2
  504. !     fi
  505. !     if test "x$nonopt" != xNONE; then
  506. !       echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  507. !     fi
  508. !     nonopt="$ac_option"
  509. !     ;;
  510. !   esac
  511.   done
  512.   
  513. ! if test -n "$ac_prev"; then
  514. !   echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  515. ! fi
  516. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  517. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  518. ! # Save the original args if we used an alternate arg parser.
  519. ! ac_configure_temp="${configure_args-$*}"
  520. ! # Strip out --no-create and --norecursion so they don't pile up.
  521. ! configure_args=
  522. ! for ac_arg in $ac_configure_temp; do
  523. !   case "$ac_arg" in
  524. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  525. !   | --no-cr | --no-c) ;;
  526. !   -norecursion | --norecursion | --norecursio | --norecursi \
  527. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  528. !   *) configure_args="$configure_args $ac_arg" ;;
  529. !   esac
  530. ! done
  531.   
  532.   # NLS nuisances.
  533.   # These must not be set unconditionally because not all systems understand
  534.   # e.g. LANG=C (notably SCO).
  535. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  536. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  537.   
  538. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  539. ! rm -rf conftest* confdefs.h
  540.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  541.   echo > confdefs.h
  542.   
  543.   # A filename unique to this package, relative to the directory that
  544.   # configure is in, which we can look for to find out if srcdir is correct.
  545. ! ac_unique_file=web2c/web2c.c
  546.   
  547.   # Find the source files, if location was not specified.
  548.   if test -z "$srcdir"; then
  549. !   ac_srcdir_defaulted=yes
  550.     # Try the directory containing this script, then `..'.
  551. !   ac_prog=$0
  552. !   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  553. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  554. !   srcdir=$ac_confdir
  555. !   if test ! -r $srcdir/$ac_unique_file; then
  556.       srcdir=..
  557.     fi
  558.   fi
  559. ! if test ! -r $srcdir/$ac_unique_file; then
  560. !   if test x$ac_srcdir_defaulted = xyes; then
  561. !     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  562.     else
  563. !     echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  564.     fi
  565.   fi
  566. ! ac_ext=c
  567. ! # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  568. ! ac_cpp='${CPP}'
  569. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  570.   
  571.   
  572.   
  573.   
  574. ***************
  575. *** 138,152 ****
  576.   if test -z "$CC"; then
  577.     # Extract the first word of `gcc', so it can be a program name with args.
  578. !   set dummy gcc; word=$2
  579. !   echo checking for $word
  580. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  581. !   for dir in $PATH; do
  582. !     test -z "$dir" && dir=.
  583. !     if test -f $dir/$word; then
  584.         CC="gcc"
  585.         break
  586.       fi
  587.     done
  588. !   IFS="$saveifs"
  589.   fi
  590.   test -z "$CC" && CC="cc"
  591. --- 325,339 ----
  592.   if test -z "$CC"; then
  593.     # Extract the first word of `gcc', so it can be a program name with args.
  594. !   set ac_dummy gcc; ac_word=$2
  595. !   test -n "$silent" || echo "checking for $ac_word"
  596. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  597. !   for ac_dir in $PATH; do
  598. !     test -z "$ac_dir" && ac_dir=.
  599. !     if test -f $ac_dir/$ac_word; then
  600.         CC="gcc"
  601.         break
  602.       fi
  603.     done
  604. !   IFS="$ac_save_ifs"
  605.   fi
  606.   test -z "$CC" && CC="cc"
  607. ***************
  608. *** 165,169 ****
  609.   rm -f conftest*
  610.   
  611. ! echo checking how to run the C preprocessor
  612.   if test -z "$CPP"; then
  613.     # This must be in double quotes, not single quotes, because CPP may get
  614. --- 352,356 ----
  615.   rm -f conftest*
  616.   
  617. ! test -n "$silent" || echo "checking how to run the C preprocessor"
  618.   if test -z "$CPP"; then
  619.     # This must be in double quotes, not single quotes, because CPP may get
  620. ***************
  621. *** 171,181 ****
  622.     # make.  It must be expanded now.
  623.     CPP="${CC-cc} -E"
  624. !   cat > conftest.c <<EOF
  625.   #include "confdefs.h"
  626.   #include <stdio.h>
  627.   Syntax Error
  628.   EOF
  629. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  630. ! if test -z "$err"; then
  631.     :
  632.   else
  633. --- 358,383 ----
  634.     # make.  It must be expanded now.
  635.     CPP="${CC-cc} -E"
  636. !   cat > conftest.${ac_ext} <<EOF
  637. ! #include "confdefs.h"
  638. ! #include <stdio.h>
  639. ! Syntax Error
  640. ! EOF
  641. ! # Some shells (Coherent) do redirections in the wrong order, so need
  642. ! # the parens.
  643. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  644. ! if test -z "$ac_err"; then
  645. !   :
  646. ! else
  647. !   rm -rf conftest*
  648. !   CPP="${CC-cc} -E -traditional-cpp"
  649. !   cat > conftest.${ac_ext} <<EOF
  650.   #include "confdefs.h"
  651.   #include <stdio.h>
  652.   Syntax Error
  653.   EOF
  654. ! # Some shells (Coherent) do redirections in the wrong order, so need
  655. ! # the parens.
  656. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  657. ! if test -z "$ac_err"; then
  658.     :
  659.   else
  660. ***************
  661. *** 185,189 ****
  662.   rm -f conftest*
  663.   fi
  664. ! test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  665.   
  666.   # Make sure to not get the incompatible SysV /etc/install and
  667. --- 387,393 ----
  668.   rm -f conftest*
  669.   fi
  670. ! rm -f conftest*
  671. ! fi
  672. ! test -n "$verbose" && echo "    setting CPP to $CPP"
  673.   
  674.   # Make sure to not get the incompatible SysV /etc/install and
  675. ***************
  676. *** 192,246 ****
  677.   # or the AFS install, which mishandles nonexistent args, or
  678.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  679. ! # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  680. ! # anyway.  Sigh.
  681. ! if test "z${INSTALL}" = "z" ; then
  682. !   echo checking for install
  683. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  684. !   for dir in $PATH; do
  685. !     test -z "$dir" && dir=.
  686. !     case $dir in
  687. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  688.       *)
  689. !       if test -f $dir/installbsd; then
  690. !     INSTALL="$dir/installbsd -c" # OSF1
  691. !     INSTALL_PROGRAM='$(INSTALL)'
  692. !     INSTALL_DATA='$(INSTALL) -m 644'
  693. !     break
  694. !       fi
  695. !       if test -f $dir/install; then
  696. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  697. !       : # AIX
  698. !     else
  699. !       INSTALL="$dir/install -c"
  700. !       INSTALL_PROGRAM='$(INSTALL)'
  701. !       INSTALL_DATA='$(INSTALL) -m 644'
  702. !       break
  703.       fi
  704. !       fi
  705.         ;;
  706.       esac
  707.     done
  708. !   IFS="$saveifs"
  709.   fi
  710. - INSTALL=${INSTALL-cp}
  711.   test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  712. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  713.   test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  714. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  715.   test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  716.   
  717.   if test -z "$RANLIB"; then
  718.     # Extract the first word of `ranlib', so it can be a program name with args.
  719. !   set dummy ranlib; word=$2
  720. !   echo checking for $word
  721. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  722. !   for dir in $PATH; do
  723. !     test -z "$dir" && dir=.
  724. !     if test -f $dir/$word; then
  725.         RANLIB="ranlib"
  726.         break
  727.       fi
  728.     done
  729. !   IFS="$saveifs"
  730.   fi
  731.   test -z "$RANLIB" && RANLIB=":"
  732. --- 396,471 ----
  733.   # or the AFS install, which mishandles nonexistent args, or
  734.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  735. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  736. ! # syntax.  Sigh.
  737. ! #
  738. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  739. ! #     anyway.
  740. ! # This turns out not to be true, so the mere pathname isn't an indication
  741. ! # of whether the program works.  What we really need is a set of tests for
  742. ! # the install program to see if it actually works in all the required ways.
  743. ! #
  744. ! # Avoid using ./install, which might have been erroneously created
  745. ! # by make from ./install.sh.
  746. ! if test -z "${INSTALL}"; then
  747. !   test -n "$silent" || echo "checking for a BSD compatible install"
  748. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  749. !   for ac_dir in $PATH; do
  750. !     case "$ac_dir" in
  751. !     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  752.       *)
  753. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  754. !       for ac_prog in installbsd scoinst install; do
  755. !         if test -f $ac_dir/$ac_prog; then
  756. !       if test $ac_prog = install &&
  757. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  758. !         # AIX install.  It has an incompatible calling convention.
  759. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  760. !         :
  761. !       else
  762. !         INSTALL="$ac_dir/$ac_prog -c"
  763. !         break 2
  764. !       fi
  765.       fi
  766. !       done
  767.         ;;
  768.       esac
  769.     done
  770. !   IFS="$ac_save_ifs"
  771. ! fi
  772. ! if test -z "$INSTALL"; then
  773. !   # As a last resort, use the slow shell script.
  774. !   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  775. !     if test -f $ac_dir/install.sh; then
  776. !       INSTALL="$ac_dir/install.sh -c"; break
  777. !     fi
  778. !   done
  779. ! fi
  780. ! if test -z "$INSTALL"; then
  781. !   echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  782.   fi
  783.   test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  784. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  785. ! # It thinks the first close brace ends the variable substitution.
  786. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  787.   test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  788. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  789.   test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  790.   
  791.   if test -z "$RANLIB"; then
  792.     # Extract the first word of `ranlib', so it can be a program name with args.
  793. !   set ac_dummy ranlib; ac_word=$2
  794. !   test -n "$silent" || echo "checking for $ac_word"
  795. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  796. !   for ac_dir in $PATH; do
  797. !     test -z "$ac_dir" && ac_dir=.
  798. !     if test -f $ac_dir/$ac_word; then
  799.         RANLIB="ranlib"
  800.         break
  801.       fi
  802.     done
  803. !   IFS="$ac_save_ifs"
  804.   fi
  805.   test -z "$RANLIB" && RANLIB=":"
  806. ***************
  807. *** 248,253 ****
  808.   
  809.   
  810. ! echo checking for POSIXized ISC
  811.   if test -d /etc/conf/kconfig.d &&
  812.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  813. --- 473,477 ----
  814.   
  815.   
  816. ! test -n "$silent" || echo "checking for POSIXized ISC"
  817.   if test -d /etc/conf/kconfig.d &&
  818.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  819. ***************
  820. *** 258,266 ****
  821.   test -n "$verbose" && \
  822.   echo "    defining _POSIX_SOURCE"
  823. ! echo "#define" _POSIX_SOURCE 1 >> confdefs.h
  824.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  825. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  826. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  827. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  828.   "
  829.   }
  830. --- 482,490 ----
  831.   test -n "$verbose" && \
  832.   echo "    defining _POSIX_SOURCE"
  833. ! echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  834.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  835. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  836. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  837. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  838.   "
  839.   }
  840. ***************
  841. *** 274,289 ****
  842.   
  843.   
  844. ! echo checking for directory library header
  845. ! dirheader=
  846. ! if test -z "$dirheader"; then
  847. !   echo checking for dirent.h
  848. ! cat > conftest.c <<EOF
  849.   #include "confdefs.h"
  850.   #include <sys/types.h>
  851.   #include <dirent.h>
  852. ! int main() { exit(0); }
  853. ! int t() { DIR *dirp = 0; }
  854.   EOF
  855. ! if eval $compile; then
  856.     rm -rf conftest*
  857.     
  858. --- 498,513 ----
  859.   
  860.   
  861. ! test -n "$silent" || echo "checking for directory library header"
  862. ! ac_dir_header=
  863. ! if test -z "$ac_dir_header"; then
  864. !   test -n "$silent" || echo "checking for dirent.h"
  865. ! cat > conftest.${ac_ext} <<EOF
  866.   #include "confdefs.h"
  867.   #include <sys/types.h>
  868.   #include <dirent.h>
  869. ! int main() { return 0; }
  870. ! int t() { DIR *dirp = 0;; return 0; }
  871.   EOF
  872. ! if eval $ac_compile; then
  873.     rm -rf conftest*
  874.     
  875. ***************
  876. *** 291,316 ****
  877.   test -n "$verbose" && \
  878.   echo "    defining DIRENT"
  879. ! echo "#define" DIRENT 1 >> confdefs.h
  880.   DEFS="$DEFS -DDIRENT=1"
  881. ! SEDDEFS="${SEDDEFS}\${SEDdA}DIRENT\${SEDdB}DIRENT\${SEDdC}1\${SEDdD}
  882. ! \${SEDuA}DIRENT\${SEDuB}DIRENT\${SEDuC}1\${SEDuD}
  883. ! \${SEDeA}DIRENT\${SEDeB}DIRENT\${SEDeC}1\${SEDeD}
  884.   "
  885.   }
  886. !  dirheader=dirent.h
  887.   
  888.   fi
  889.   rm -f conftest*
  890.   fi
  891. ! if test -z "$dirheader"; then
  892. !   echo checking for sys/ndir.h
  893. ! cat > conftest.c <<EOF
  894.   #include "confdefs.h"
  895.   #include <sys/types.h>
  896.   #include <sys/ndir.h>
  897. ! int main() { exit(0); }
  898. ! int t() { DIR *dirp = 0; }
  899.   EOF
  900. ! if eval $compile; then
  901.     rm -rf conftest*
  902.     
  903. --- 515,540 ----
  904.   test -n "$verbose" && \
  905.   echo "    defining DIRENT"
  906. ! echo "#define" DIRENT "1" >> confdefs.h
  907.   DEFS="$DEFS -DDIRENT=1"
  908. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
  909. ! \${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
  910. ! \${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
  911.   "
  912.   }
  913. !  ac_dir_header=dirent.h
  914.   
  915.   fi
  916.   rm -f conftest*
  917.   fi
  918. ! if test -z "$ac_dir_header"; then
  919. !   test -n "$silent" || echo "checking for sys/ndir.h"
  920. ! cat > conftest.${ac_ext} <<EOF
  921.   #include "confdefs.h"
  922.   #include <sys/types.h>
  923.   #include <sys/ndir.h>
  924. ! int main() { return 0; }
  925. ! int t() { DIR *dirp = 0;; return 0; }
  926.   EOF
  927. ! if eval $ac_compile; then
  928.     rm -rf conftest*
  929.     
  930. ***************
  931. *** 318,343 ****
  932.   test -n "$verbose" && \
  933.   echo "    defining SYSNDIR"
  934. ! echo "#define" SYSNDIR 1 >> confdefs.h
  935.   DEFS="$DEFS -DSYSNDIR=1"
  936. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSNDIR\${SEDdB}SYSNDIR\${SEDdC}1\${SEDdD}
  937. ! \${SEDuA}SYSNDIR\${SEDuB}SYSNDIR\${SEDuC}1\${SEDuD}
  938. ! \${SEDeA}SYSNDIR\${SEDeB}SYSNDIR\${SEDeC}1\${SEDeD}
  939.   "
  940.   }
  941. !  dirheader=sys/ndir.h
  942.   
  943.   fi
  944.   rm -f conftest*
  945.   fi
  946. ! if test -z "$dirheader"; then
  947. !   echo checking for sys/dir.h
  948. ! cat > conftest.c <<EOF
  949.   #include "confdefs.h"
  950.   #include <sys/types.h>
  951.   #include <sys/dir.h>
  952. ! int main() { exit(0); }
  953. ! int t() { DIR *dirp = 0; }
  954.   EOF
  955. ! if eval $compile; then
  956.     rm -rf conftest*
  957.     
  958. --- 542,567 ----
  959.   test -n "$verbose" && \
  960.   echo "    defining SYSNDIR"
  961. ! echo "#define" SYSNDIR "1" >> confdefs.h
  962.   DEFS="$DEFS -DSYSNDIR=1"
  963. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
  964. ! \${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
  965. ! \${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
  966.   "
  967.   }
  968. !  ac_dir_header=sys/ndir.h
  969.   
  970.   fi
  971.   rm -f conftest*
  972.   fi
  973. ! if test -z "$ac_dir_header"; then
  974. !   test -n "$silent" || echo "checking for sys/dir.h"
  975. ! cat > conftest.${ac_ext} <<EOF
  976.   #include "confdefs.h"
  977.   #include <sys/types.h>
  978.   #include <sys/dir.h>
  979. ! int main() { return 0; }
  980. ! int t() { DIR *dirp = 0;; return 0; }
  981.   EOF
  982. ! if eval $ac_compile; then
  983.     rm -rf conftest*
  984.     
  985. ***************
  986. *** 345,370 ****
  987.   test -n "$verbose" && \
  988.   echo "    defining SYSDIR"
  989. ! echo "#define" SYSDIR 1 >> confdefs.h
  990.   DEFS="$DEFS -DSYSDIR=1"
  991. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSDIR\${SEDdB}SYSDIR\${SEDdC}1\${SEDdD}
  992. ! \${SEDuA}SYSDIR\${SEDuB}SYSDIR\${SEDuC}1\${SEDuD}
  993. ! \${SEDeA}SYSDIR\${SEDeB}SYSDIR\${SEDeC}1\${SEDeD}
  994.   "
  995.   }
  996. !  dirheader=sys/dir.h
  997.   
  998.   fi
  999.   rm -f conftest*
  1000.   fi
  1001. ! if test -z "$dirheader"; then
  1002. !   echo checking for ndir.h
  1003. ! cat > conftest.c <<EOF
  1004.   #include "confdefs.h"
  1005.   #include <sys/types.h>
  1006.   #include <ndir.h>
  1007. ! int main() { exit(0); }
  1008. ! int t() { DIR *dirp = 0; }
  1009.   EOF
  1010. ! if eval $compile; then
  1011.     rm -rf conftest*
  1012.     
  1013. --- 569,594 ----
  1014.   test -n "$verbose" && \
  1015.   echo "    defining SYSDIR"
  1016. ! echo "#define" SYSDIR "1" >> confdefs.h
  1017.   DEFS="$DEFS -DSYSDIR=1"
  1018. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
  1019. ! \${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
  1020. ! \${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
  1021.   "
  1022.   }
  1023. !  ac_dir_header=sys/dir.h
  1024.   
  1025.   fi
  1026.   rm -f conftest*
  1027.   fi
  1028. ! if test -z "$ac_dir_header"; then
  1029. !   test -n "$silent" || echo "checking for ndir.h"
  1030. ! cat > conftest.${ac_ext} <<EOF
  1031.   #include "confdefs.h"
  1032.   #include <sys/types.h>
  1033.   #include <ndir.h>
  1034. ! int main() { return 0; }
  1035. ! int t() { DIR *dirp = 0;; return 0; }
  1036.   EOF
  1037. ! if eval $ac_compile; then
  1038.     rm -rf conftest*
  1039.     
  1040. ***************
  1041. *** 372,383 ****
  1042.   test -n "$verbose" && \
  1043.   echo "    defining NDIR"
  1044. ! echo "#define" NDIR 1 >> confdefs.h
  1045.   DEFS="$DEFS -DNDIR=1"
  1046. ! SEDDEFS="${SEDDEFS}\${SEDdA}NDIR\${SEDdB}NDIR\${SEDdC}1\${SEDdD}
  1047. ! \${SEDuA}NDIR\${SEDuB}NDIR\${SEDuC}1\${SEDuD}
  1048. ! \${SEDeA}NDIR\${SEDeB}NDIR\${SEDeC}1\${SEDeD}
  1049.   "
  1050.   }
  1051. !  dirheader=ndir.h
  1052.   
  1053.   fi
  1054. --- 596,607 ----
  1055.   test -n "$verbose" && \
  1056.   echo "    defining NDIR"
  1057. ! echo "#define" NDIR "1" >> confdefs.h
  1058.   DEFS="$DEFS -DNDIR=1"
  1059. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
  1060. ! \${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
  1061. ! \${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
  1062.   "
  1063.   }
  1064. !  ac_dir_header=ndir.h
  1065.   
  1066.   fi
  1067. ***************
  1068. *** 385,396 ****
  1069.   fi
  1070.   
  1071. ! echo checking for closedir return value
  1072. ! cat > conftest.c <<EOF
  1073.   #include "confdefs.h"
  1074.   #include <sys/types.h>
  1075. ! #include <$dirheader>
  1076.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1077.   EOF
  1078. ! eval $compile
  1079.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1080.     :
  1081. --- 609,620 ----
  1082.   fi
  1083.   
  1084. ! test -n "$silent" || echo "checking for closedir return value"
  1085. ! cat > conftest.${ac_ext} <<EOF
  1086.   #include "confdefs.h"
  1087.   #include <sys/types.h>
  1088. ! #include <$ac_dir_header>
  1089.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1090.   EOF
  1091. ! eval $ac_compile
  1092.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1093.     :
  1094. ***************
  1095. *** 400,408 ****
  1096.   test -n "$verbose" && \
  1097.   echo "    defining VOID_CLOSEDIR"
  1098. ! echo "#define" VOID_CLOSEDIR 1 >> confdefs.h
  1099.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1100. ! SEDDEFS="${SEDDEFS}\${SEDdA}VOID_CLOSEDIR\${SEDdB}VOID_CLOSEDIR\${SEDdC}1\${SEDdD}
  1101. ! \${SEDuA}VOID_CLOSEDIR\${SEDuB}VOID_CLOSEDIR\${SEDuC}1\${SEDuD}
  1102. ! \${SEDeA}VOID_CLOSEDIR\${SEDeB}VOID_CLOSEDIR\${SEDeC}1\${SEDeD}
  1103.   "
  1104.   }
  1105. --- 624,632 ----
  1106.   test -n "$verbose" && \
  1107.   echo "    defining VOID_CLOSEDIR"
  1108. ! echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  1109.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1110. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
  1111. ! \${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
  1112. ! \${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
  1113.   "
  1114.   }
  1115. ***************
  1116. *** 411,416 ****
  1117.   rm -fr conftest*
  1118.   
  1119. ! echo checking for Xenix
  1120. ! cat > conftest.c <<EOF
  1121.   #include "confdefs.h"
  1122.   #if defined(M_XENIX) && !defined(M_UNIX)
  1123. --- 635,640 ----
  1124.   rm -fr conftest*
  1125.   
  1126. ! test -n "$silent" || echo "checking for Xenix"
  1127. ! cat > conftest.${ac_ext} <<EOF
  1128.   #include "confdefs.h"
  1129.   #if defined(M_XENIX) && !defined(M_UNIX)
  1130. ***************
  1131. *** 419,423 ****
  1132.   
  1133.   EOF
  1134. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1135.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  1136.     rm -rf conftest*
  1137. --- 643,647 ----
  1138.   
  1139.   EOF
  1140. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1141.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  1142.     rm -rf conftest*
  1143. ***************
  1144. *** 435,440 ****
  1145.   fi
  1146.   
  1147. ! echo checking for ANSI C header files
  1148. ! cat > conftest.c <<EOF
  1149.   #include "confdefs.h"
  1150.   #include <stdlib.h>
  1151. --- 659,664 ----
  1152.   fi
  1153.   
  1154. ! test -n "$silent" || echo "checking for ANSI C header files"
  1155. ! cat > conftest.${ac_ext} <<EOF
  1156.   #include "confdefs.h"
  1157.   #include <stdlib.h>
  1158. ***************
  1159. *** 443,457 ****
  1160.   #include <float.h>
  1161.   EOF
  1162. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1163. ! if test -z "$err"; then
  1164.     rm -rf conftest*
  1165.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1166.   echo '#include "confdefs.h"
  1167. ! #include <string.h>' > conftest.c
  1168. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1169.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1170.     rm -rf conftest*
  1171.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1172. ! cat > conftest.c <<EOF
  1173.   #include "confdefs.h"
  1174.   #include <ctype.h>
  1175. --- 667,683 ----
  1176.   #include <float.h>
  1177.   EOF
  1178. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1179. ! # the parens.
  1180. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1181. ! if test -z "$ac_err"; then
  1182.     rm -rf conftest*
  1183.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1184.   echo '#include "confdefs.h"
  1185. ! #include <string.h>' > conftest.${ac_ext}
  1186. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1187.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1188.     rm -rf conftest*
  1189.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1190. ! cat > conftest.${ac_ext} <<EOF
  1191.   #include "confdefs.h"
  1192.   #include <ctype.h>
  1193. ***************
  1194. *** 464,478 ****
  1195.   
  1196.   EOF
  1197. ! eval $compile
  1198.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1199.     
  1200.   {
  1201.   test -n "$verbose" && \
  1202.   echo "    defining STDC_HEADERS"
  1203. ! echo "#define" STDC_HEADERS 1 >> confdefs.h
  1204.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1205. ! SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
  1206. ! \${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
  1207. ! \${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
  1208.   "
  1209.   }
  1210. --- 690,710 ----
  1211.   
  1212.   EOF
  1213. ! eval $ac_compile
  1214.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1215. +   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1216. + echo '#include "confdefs.h"
  1217. + #include <stdlib.h>' > conftest.${ac_ext}
  1218. + eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1219. + if egrep "free" conftest.out >/dev/null 2>&1; then
  1220. +   rm -rf conftest*
  1221.     
  1222.   {
  1223.   test -n "$verbose" && \
  1224.   echo "    defining STDC_HEADERS"
  1225. ! echo "#define" STDC_HEADERS "1" >> confdefs.h
  1226.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1227. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  1228. ! \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  1229. ! \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  1230.   "
  1231.   }
  1232. ***************
  1233. *** 480,483 ****
  1234. --- 712,719 ----
  1235.   
  1236.   fi
  1237. + rm -f conftest*
  1238. + fi
  1239.   rm -fr conftest*
  1240.   
  1241. ***************
  1242. *** 489,513 ****
  1243.   rm -f conftest*
  1244.   
  1245. ! for hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1246.                   string.h unistd.h
  1247.   do
  1248. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1249. ! echo checking for ${hdr}
  1250. ! cat > conftest.c <<EOF
  1251. ! #include "confdefs.h"
  1252. ! #include <${hdr}>
  1253. ! EOF
  1254. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1255. ! if test -z "$err"; then
  1256.     rm -rf conftest*
  1257.     
  1258.   {
  1259.   test -n "$verbose" && \
  1260. ! echo "    defining ${trhdr}"
  1261. ! echo "#define" ${trhdr} 1 >> confdefs.h
  1262. ! DEFS="$DEFS -D${trhdr}=1"
  1263. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  1264. ! \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  1265. ! \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  1266.   "
  1267.   }
  1268. --- 725,751 ----
  1269.   rm -f conftest*
  1270.   
  1271. ! for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1272.                   string.h unistd.h
  1273.   do
  1274. ! ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1275. ! test -n "$silent" || echo "checking for ${ac_hdr}"
  1276. ! cat > conftest.${ac_ext} <<EOF
  1277. ! #include "confdefs.h"
  1278. ! #include <${ac_hdr}>
  1279. ! EOF
  1280. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1281. ! # the parens.
  1282. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1283. ! if test -z "$ac_err"; then
  1284.     rm -rf conftest*
  1285.     
  1286.   {
  1287.   test -n "$verbose" && \
  1288. ! echo "    defining ${ac_tr_hdr}"
  1289. ! echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1290. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1291. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  1292. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  1293. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  1294.   "
  1295.   }
  1296. ***************
  1297. *** 519,552 ****
  1298.   
  1299.   
  1300. ! for func in memmove putenv
  1301.   do
  1302. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1303. ! echo checking for ${func}
  1304. ! cat > conftest.c <<EOF
  1305.   #include "confdefs.h"
  1306.   #include <ctype.h>
  1307. ! int main() { exit(0); }
  1308.   int t() { 
  1309.   /* The GNU C library defines this for functions which it implements
  1310.       to always fail with ENOSYS.  Some functions are actually named
  1311.       something starting with __ and the normal name is an alias.  */
  1312. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1313.   choke me
  1314.   #else
  1315.   /* Override any gcc2 internal prototype to avoid an error.  */
  1316. ! extern char ${func}(); ${func}();
  1317.   #endif
  1318. !  }
  1319.   EOF
  1320. ! if eval $compile; then
  1321.     rm -rf conftest*
  1322.     {
  1323.   test -n "$verbose" && \
  1324. ! echo "    defining ${trfunc}"
  1325. ! echo "#define" ${trfunc} 1 >> confdefs.h
  1326. ! DEFS="$DEFS -D${trfunc}=1"
  1327. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
  1328. ! \${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
  1329. ! \${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
  1330.   "
  1331.   }
  1332. --- 757,790 ----
  1333.   
  1334.   
  1335. ! for ac_func in bcopy memmove putenv
  1336.   do
  1337. ! ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1338. ! test -n "$silent" || echo "checking for ${ac_func}"
  1339. ! cat > conftest.${ac_ext} <<EOF
  1340.   #include "confdefs.h"
  1341.   #include <ctype.h>
  1342. ! int main() { return 0; }
  1343.   int t() { 
  1344.   /* The GNU C library defines this for functions which it implements
  1345.       to always fail with ENOSYS.  Some functions are actually named
  1346.       something starting with __ and the normal name is an alias.  */
  1347. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1348.   choke me
  1349.   #else
  1350.   /* Override any gcc2 internal prototype to avoid an error.  */
  1351. ! extern char ${ac_func}(); ${ac_func}();
  1352.   #endif
  1353. ! ; return 0; }
  1354.   EOF
  1355. ! if eval $ac_compile; then
  1356.     rm -rf conftest*
  1357.     {
  1358.   test -n "$verbose" && \
  1359. ! echo "    defining ${ac_tr_func}"
  1360. ! echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1361. ! DEFS="$DEFS -D${ac_tr_func}=1"
  1362. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  1363. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  1364. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  1365.   "
  1366.   }
  1367. ***************
  1368. *** 557,562 ****
  1369.   done
  1370.   
  1371. ! prog='/* Ultrix mips cc rejects this.  */
  1372.   typedef int charset[2]; const charset x;
  1373.   /* SunOS 4.1.1 cc rejects this.  */
  1374. --- 795,799 ----
  1375.   done
  1376.   
  1377. ! ac_prog='/* Ultrix mips cc rejects this.  */
  1378.   typedef int charset[2]; const charset x;
  1379.   /* SunOS 4.1.1 cc rejects this.  */
  1380. ***************
  1381. *** 596,607 ****
  1382.     const int foo = 10;
  1383.   }'
  1384. ! echo checking for lack of working const
  1385. ! cat > conftest.c <<EOF
  1386.   #include "confdefs.h"
  1387.   
  1388. ! int main() { exit(0); }
  1389. ! int t() { $prog }
  1390.   EOF
  1391. ! if eval $compile; then
  1392.     :
  1393.   else
  1394. --- 833,844 ----
  1395.     const int foo = 10;
  1396.   }'
  1397. ! test -n "$silent" || echo "checking for lack of working const"
  1398. ! cat > conftest.${ac_ext} <<EOF
  1399.   #include "confdefs.h"
  1400.   
  1401. ! int main() { return 0; }
  1402. ! int t() { $ac_prog; return 0; }
  1403.   EOF
  1404. ! if eval $ac_compile; then
  1405.     :
  1406.   else
  1407. ***************
  1408. *** 611,644 ****
  1409.   test -n "$verbose" && \
  1410.   echo "    defining" const to be empty
  1411. ! echo "#define" const  >> confdefs.h
  1412.   DEFS="$DEFS -Dconst="
  1413. ! SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
  1414. ! \${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
  1415. ! \${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
  1416.   "
  1417.   }
  1418.   
  1419.   fi
  1420.   rm -f conftest*
  1421.   
  1422.   
  1423.   
  1424.   
  1425.   
  1426. ! for p in 'bison -y' byacc
  1427.   do
  1428.   if test -z "$YACC"; then
  1429. !   # Extract the first word of `$p', so it can be a program name with args.
  1430. !   set dummy $p; word=$2
  1431. !   echo checking for $word
  1432. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1433. !   for dir in $PATH; do
  1434. !     test -z "$dir" && dir=.
  1435. !     if test -f $dir/$word; then
  1436. !       YACC="$p"
  1437.         break
  1438.       fi
  1439.     done
  1440. !   IFS="$saveifs"
  1441.   fi
  1442.   
  1443. --- 848,989 ----
  1444.   test -n "$verbose" && \
  1445.   echo "    defining" const to be empty
  1446. ! echo "#define" const "" >> confdefs.h
  1447.   DEFS="$DEFS -Dconst="
  1448. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
  1449. ! \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
  1450. ! \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
  1451. ! "
  1452. ! }
  1453. ! fi
  1454. ! rm -f conftest*
  1455. ! # GNU libc predefines `program_invocation_name'.
  1456. ! test -n "$silent" || echo "checking for program_invocation_name"
  1457. ! cat > conftest.${ac_ext} <<EOF
  1458. ! #include "confdefs.h"
  1459. ! int main() { return 0; }
  1460. ! int t() { main() { program_invocation_name = "hello"; }; return 0; }
  1461. ! EOF
  1462. ! if eval $ac_compile; then
  1463. !   rm -rf conftest*
  1464. !   
  1465. ! {
  1466. ! test -n "$verbose" && \
  1467. ! echo "    defining HAVE_PROGRAM_INVOCATION_NAME"
  1468. ! echo "#define" HAVE_PROGRAM_INVOCATION_NAME "1" >> confdefs.h
  1469. ! DEFS="$DEFS -DHAVE_PROGRAM_INVOCATION_NAME=1"
  1470. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PROGRAM_INVOCATION_NAME\${ac_dB}HAVE_PROGRAM_INVOCATION_NAME\${ac_dC}1\${ac_dD}
  1471. ! \${ac_uA}HAVE_PROGRAM_INVOCATION_NAME\${ac_uB}HAVE_PROGRAM_INVOCATION_NAME\${ac_uC}1\${ac_uD}
  1472. ! \${ac_eA}HAVE_PROGRAM_INVOCATION_NAME\${ac_eB}HAVE_PROGRAM_INVOCATION_NAME\${ac_eC}1\${ac_eD}
  1473.   "
  1474.   }
  1475.   
  1476.   fi
  1477.   rm -f conftest*
  1478.   
  1479.   
  1480. + # Some BSD systems do malloc/free's on the environment.
  1481. + # This test program is due to Mike Hibler <mike@cs.utah.edu>.
  1482. + test -n "$silent" || echo "checking for smart putenv"
  1483. + cat > conftest.${ac_ext} <<EOF
  1484. + #include "confdefs.h"
  1485. + int main() { return 0; }
  1486. + int t() { 
  1487. + #define VAR    "YOW_VAR"
  1488. + #define STRING1 "GabbaGabbaHey"
  1489. + #define STRING2 "Yow!!"        /* should be shorter than STRING1 */
  1490. + extern char *getenv (); /* in case char* and int don't mix gracefully */
  1491. + main ()
  1492. + {
  1493. +   char *str1, *rstr1, *str2, *rstr2;
  1494. +   str1 = getenv (VAR);
  1495. +   if (str1)
  1496. +     exit (1);
  1497. +   str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1);
  1498. +   if (str1 == 0)
  1499. +     exit (2);
  1500. +   strcpy (str1, VAR);
  1501. +   strcat (str1, "=");
  1502. +   strcat (str1, STRING1);
  1503. +   if (putenv (str1) < 0)
  1504. +     exit (3);
  1505. +   rstr1 = getenv (VAR);
  1506. +   if (rstr1 == 0)
  1507. +     exit (4);
  1508. +   rstr1 -= strlen (VAR) + 1;
  1509. +   if (strncmp (rstr1, VAR, strlen (VAR)))
  1510. +     exit (5);
  1511. +   str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1);
  1512. +   if (str2 == 0 || str1 == str2)
  1513. +     exit (6);
  1514. +   strcpy (str2, VAR);
  1515. +   strcat (str2, "=");
  1516. +   strcat (str2, STRING2);
  1517. +   if (putenv (str2) < 0)
  1518. +     exit (7);
  1519. +   rstr2 = getenv (VAR);
  1520. +   if (rstr2 == 0)
  1521. +     exit (8);
  1522. +   rstr2 -= strlen (VAR) + 1;
  1523. + #if 0
  1524. +   printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2);
  1525. +   /*
  1526. +    * If string from first call was reused for the second call,
  1527. +    * you had better not do a free on the first string!
  1528. +    */
  1529. +   if (rstr1 == rstr2)
  1530. +           printf ("#define\tSMART_PUTENV\n");
  1531. +   else
  1532. +           printf ("#undef\tSMART_PUTENV\n");
  1533. + #endif
  1534. +   exit (rstr1 == rstr2 ? 0 : 1);
  1535. + }
  1536. + ; return 0; }
  1537. + EOF
  1538. + if eval $ac_compile; then
  1539. +   rm -rf conftest*
  1540. +   
  1541. + {
  1542. + test -n "$verbose" && \
  1543. + echo "    defining "
  1544. + echo "#define"  "1" >> confdefs.h
  1545. + DEFS="$DEFS -D=1"
  1546. + ac_sed_defs="${ac_sed_defs}\${ac_dA}\${ac_dB}\${ac_dC}1\${ac_dD}
  1547. + \${ac_uA}\${ac_uB}\${ac_uC}1\${ac_uD}
  1548. + \${ac_eA}\${ac_eB}\${ac_eC}1\${ac_eD}
  1549. + "
  1550. + }
  1551. +  (SMART_PUTENV)
  1552. + fi
  1553. + rm -f conftest*
  1554.   
  1555.   
  1556.   
  1557. ! for ac_prog in 'bison -y' byacc
  1558.   do
  1559.   if test -z "$YACC"; then
  1560. !   # Extract the first word of `$ac_prog', so it can be a program name with args.
  1561. !   set ac_dummy $ac_prog; ac_word=$2
  1562. !   test -n "$silent" || echo "checking for $ac_word"
  1563. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1564. !   for ac_dir in $PATH; do
  1565. !     test -z "$ac_dir" && ac_dir=.
  1566. !     if test -f $ac_dir/$ac_word; then
  1567. !       YACC="$ac_prog"
  1568.         break
  1569.       fi
  1570.     done
  1571. !   IFS="$ac_save_ifs"
  1572.   fi
  1573.   
  1574. ***************
  1575. *** 651,665 ****
  1576.   if test -z "$LEX"; then
  1577.     # Extract the first word of `flex', so it can be a program name with args.
  1578. !   set dummy flex; word=$2
  1579. !   echo checking for $word
  1580. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1581. !   for dir in $PATH; do
  1582. !     test -z "$dir" && dir=.
  1583. !     if test -f $dir/$word; then
  1584.         LEX="flex"
  1585.         break
  1586.       fi
  1587.     done
  1588. !   IFS="$saveifs"
  1589.   fi
  1590.   test -z "$LEX" && LEX="lex"
  1591. --- 996,1010 ----
  1592.   if test -z "$LEX"; then
  1593.     # Extract the first word of `flex', so it can be a program name with args.
  1594. !   set ac_dummy flex; ac_word=$2
  1595. !   test -n "$silent" || echo "checking for $ac_word"
  1596. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1597. !   for ac_dir in $PATH; do
  1598. !     test -z "$ac_dir" && ac_dir=.
  1599. !     if test -f $ac_dir/$ac_word; then
  1600.         LEX="flex"
  1601.         break
  1602.       fi
  1603.     done
  1604. !   IFS="$ac_save_ifs"
  1605.   fi
  1606.   test -z "$LEX" && LEX="lex"
  1607. ***************
  1608. *** 669,690 ****
  1609.   then
  1610.     case "$LEX" in
  1611. !   flex*) LIBS_save="${LIBS}"
  1612.   LIBS="${LIBS} -lfl"
  1613. ! have_lib=""
  1614. ! echo checking for -lfl
  1615. ! cat > conftest.c <<EOF
  1616.   #include "confdefs.h"
  1617.   
  1618. ! int main() { exit(0); }
  1619. ! int t() { main(); }
  1620.   EOF
  1621. ! if eval $compile; then
  1622.     rm -rf conftest*
  1623. !   have_lib="1"
  1624.   
  1625.   fi
  1626.   rm -f conftest*
  1627. ! LIBS="${LIBS_save}"
  1628. ! if test -n "${have_lib}"; then
  1629.      :; LEXLIB="-lfl"
  1630.   else
  1631. --- 1014,1035 ----
  1632.   then
  1633.     case "$LEX" in
  1634. !   flex*) ac_save_LIBS="${LIBS}"
  1635.   LIBS="${LIBS} -lfl"
  1636. ! ac_have_lib=""
  1637. ! test -n "$silent" || echo "checking for -lfl"
  1638. ! cat > conftest.${ac_ext} <<EOF
  1639.   #include "confdefs.h"
  1640.   
  1641. ! int main() { return 0; }
  1642. ! int t() { main();; return 0; }
  1643.   EOF
  1644. ! if eval $ac_compile; then
  1645.     rm -rf conftest*
  1646. !   ac_have_lib="1"
  1647.   
  1648.   fi
  1649.   rm -f conftest*
  1650. ! LIBS="${ac_save_LIBS}"
  1651. ! if test -n "${ac_have_lib}"; then
  1652.      :; LEXLIB="-lfl"
  1653.   else
  1654. ***************
  1655. *** 695,700 ****
  1656.     esac
  1657.   fi
  1658.   
  1659. ! echo checking for ln -s
  1660.   rm -f conftestdata
  1661.   if ln -s X conftestdata 2>/dev/null
  1662. --- 1040,1046 ----
  1663.     esac
  1664.   fi
  1665. + test -n "$verbose" && echo "    setting LEXLIB to $LEXLIB"
  1666.   
  1667. ! test -n "$silent" || echo "checking for ln -s"
  1668.   rm -f conftestdata
  1669.   if ln -s X conftestdata 2>/dev/null
  1670. ***************
  1671. *** 708,713 ****
  1672.   
  1673.   
  1674. ! echo checking for return type of signal handlers
  1675. ! cat > conftest.c <<EOF
  1676.   #include "confdefs.h"
  1677.   #include <sys/types.h>
  1678. --- 1054,1059 ----
  1679.   
  1680.   
  1681. ! test -n "$silent" || echo "checking for return type of signal handlers"
  1682. ! cat > conftest.${ac_ext} <<EOF
  1683.   #include "confdefs.h"
  1684.   #include <sys/types.h>
  1685. ***************
  1686. *** 717,734 ****
  1687.   #endif
  1688.   extern void (*signal ()) ();
  1689. ! int main() { exit(0); }
  1690. ! int t() { int i; }
  1691.   EOF
  1692. ! if eval $compile; then
  1693.     rm -rf conftest*
  1694.     
  1695.   {
  1696.   test -n "$verbose" && \
  1697. ! echo "    defining" RETSIGTYPE to be void
  1698. ! echo "#define" RETSIGTYPE void >> confdefs.h
  1699.   DEFS="$DEFS -DRETSIGTYPE=void"
  1700. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}void\${SEDdD}
  1701. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}void\${SEDuD}
  1702. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}void\${SEDeD}
  1703.   "
  1704.   }
  1705. --- 1063,1080 ----
  1706.   #endif
  1707.   extern void (*signal ()) ();
  1708. ! int main() { return 0; }
  1709. ! int t() { int i;; return 0; }
  1710.   EOF
  1711. ! if eval $ac_compile; then
  1712.     rm -rf conftest*
  1713.     
  1714.   {
  1715.   test -n "$verbose" && \
  1716. ! echo "    defining" RETSIGTYPE to be "void"
  1717. ! echo "#define" RETSIGTYPE "void" >> confdefs.h
  1718.   DEFS="$DEFS -DRETSIGTYPE=void"
  1719. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  1720. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  1721. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  1722.   "
  1723.   }
  1724. ***************
  1725. *** 740,749 ****
  1726.   {
  1727.   test -n "$verbose" && \
  1728. ! echo "    defining" RETSIGTYPE to be int
  1729. ! echo "#define" RETSIGTYPE int >> confdefs.h
  1730.   DEFS="$DEFS -DRETSIGTYPE=int"
  1731. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}int\${SEDdD}
  1732. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}int\${SEDuD}
  1733. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}int\${SEDeD}
  1734.   "
  1735.   }
  1736. --- 1086,1095 ----
  1737.   {
  1738.   test -n "$verbose" && \
  1739. ! echo "    defining" RETSIGTYPE to be "int"
  1740. ! echo "#define" RETSIGTYPE "int" >> confdefs.h
  1741.   DEFS="$DEFS -DRETSIGTYPE=int"
  1742. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1743. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1744. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1745.   "
  1746.   }
  1747. ***************
  1748. *** 754,759 ****
  1749.   
  1750.   
  1751. ! echo checking for unsigned characters
  1752. ! cat > conftest.c <<EOF
  1753.   #include "confdefs.h"
  1754.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1755. --- 1100,1105 ----
  1756.   
  1757.   
  1758. ! test -n "$silent" || echo "checking for unsigned characters"
  1759. ! cat > conftest.${ac_ext} <<EOF
  1760.   #include "confdefs.h"
  1761.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1762. ***************
  1763. *** 769,773 ****
  1764.   }
  1765.   EOF
  1766. ! eval $compile
  1767.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1768.     
  1769. --- 1115,1119 ----
  1770.   }
  1771.   EOF
  1772. ! eval $ac_compile
  1773.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1774.     
  1775. ***************
  1776. *** 775,783 ****
  1777.   test -n "$verbose" && \
  1778.   echo "    defining __CHAR_UNSIGNED__"
  1779. ! echo "#define" __CHAR_UNSIGNED__ 1 >> confdefs.h
  1780.   DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1781. ! SEDDEFS="${SEDDEFS}\${SEDdA}__CHAR_UNSIGNED__\${SEDdB}__CHAR_UNSIGNED__\${SEDdC}1\${SEDdD}
  1782. ! \${SEDuA}__CHAR_UNSIGNED__\${SEDuB}__CHAR_UNSIGNED__\${SEDuC}1\${SEDuD}
  1783. ! \${SEDeA}__CHAR_UNSIGNED__\${SEDeB}__CHAR_UNSIGNED__\${SEDeC}1\${SEDeD}
  1784.   "
  1785.   }
  1786. --- 1121,1129 ----
  1787.   test -n "$verbose" && \
  1788.   echo "    defining __CHAR_UNSIGNED__"
  1789. ! echo "#define" __CHAR_UNSIGNED__ "1" >> confdefs.h
  1790.   DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1791. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}__CHAR_UNSIGNED__\${ac_dB}__CHAR_UNSIGNED__\${ac_dC}1\${ac_dD}
  1792. ! \${ac_uA}__CHAR_UNSIGNED__\${ac_uB}__CHAR_UNSIGNED__\${ac_uC}1\${ac_uD}
  1793. ! \${ac_eA}__CHAR_UNSIGNED__\${ac_eB}__CHAR_UNSIGNED__\${ac_eC}1\${ac_eD}
  1794.   "
  1795.   }
  1796. ***************
  1797. *** 787,796 ****
  1798.   rm -fr conftest*
  1799.   
  1800. ! echo checking for 64-bit long ints
  1801. ! cat > conftest.c <<EOF
  1802.   #include "confdefs.h"
  1803.   main() { exit(sizeof(long int) != 8); }
  1804.   EOF
  1805. ! eval $compile
  1806.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1807.     
  1808. --- 1133,1143 ----
  1809.   rm -fr conftest*
  1810.   
  1811. ! test -n "$silent" || echo "checking for 64-bit long ints"
  1812. ! cat > conftest.${ac_ext} <<EOF
  1813.   #include "confdefs.h"
  1814.   main() { exit(sizeof(long int) != 8); }
  1815.   EOF
  1816. ! eval $ac_compile
  1817.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1818.     
  1819. ***************
  1820. *** 798,806 ****
  1821.   test -n "$verbose" && \
  1822.   echo "    defining LONG_64_BITS"
  1823. ! echo "#define" LONG_64_BITS 1 >> confdefs.h
  1824.   DEFS="$DEFS -DLONG_64_BITS=1"
  1825. ! SEDDEFS="${SEDDEFS}\${SEDdA}LONG_64_BITS\${SEDdB}LONG_64_BITS\${SEDdC}1\${SEDdD}
  1826. ! \${SEDuA}LONG_64_BITS\${SEDuB}LONG_64_BITS\${SEDuC}1\${SEDuD}
  1827. ! \${SEDeA}LONG_64_BITS\${SEDeB}LONG_64_BITS\${SEDeC}1\${SEDeD}
  1828.   "
  1829.   }
  1830. --- 1145,1153 ----
  1831.   test -n "$verbose" && \
  1832.   echo "    defining LONG_64_BITS"
  1833. ! echo "#define" LONG_64_BITS "1" >> confdefs.h
  1834.   DEFS="$DEFS -DLONG_64_BITS=1"
  1835. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}LONG_64_BITS\${ac_dB}LONG_64_BITS\${ac_dC}1\${ac_dD}
  1836. ! \${ac_uA}LONG_64_BITS\${ac_uB}LONG_64_BITS\${ac_uC}1\${ac_uD}
  1837. ! \${ac_eA}LONG_64_BITS\${ac_eB}LONG_64_BITS\${ac_eC}1\${ac_eD}
  1838.   "
  1839.   }
  1840. ***************
  1841. *** 810,815 ****
  1842.   rm -fr conftest*
  1843.   
  1844. ! echo checking byte ordering
  1845. ! cat > conftest.c <<EOF
  1846.   #include "confdefs.h"
  1847.   main () {
  1848. --- 1157,1162 ----
  1849.   rm -fr conftest*
  1850.   
  1851. ! test -n "$silent" || echo "checking byte ordering"
  1852. ! cat > conftest.${ac_ext} <<EOF
  1853.   #include "confdefs.h"
  1854.   main () {
  1855. ***************
  1856. *** 824,828 ****
  1857.   }
  1858.   EOF
  1859. ! eval $compile
  1860.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1861.     :
  1862. --- 1171,1175 ----
  1863.   }
  1864.   EOF
  1865. ! eval $ac_compile
  1866.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1867.     :
  1868. ***************
  1869. *** 832,840 ****
  1870.   test -n "$verbose" && \
  1871.   echo "    defining WORDS_BIGENDIAN"
  1872. ! echo "#define" WORDS_BIGENDIAN 1 >> confdefs.h
  1873.   DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1874. ! SEDDEFS="${SEDDEFS}\${SEDdA}WORDS_BIGENDIAN\${SEDdB}WORDS_BIGENDIAN\${SEDdC}1\${SEDdD}
  1875. ! \${SEDuA}WORDS_BIGENDIAN\${SEDuB}WORDS_BIGENDIAN\${SEDuC}1\${SEDuD}
  1876. ! \${SEDeA}WORDS_BIGENDIAN\${SEDeB}WORDS_BIGENDIAN\${SEDeC}1\${SEDeD}
  1877.   "
  1878.   }
  1879. --- 1179,1187 ----
  1880.   test -n "$verbose" && \
  1881.   echo "    defining WORDS_BIGENDIAN"
  1882. ! echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
  1883.   DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1884. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD}
  1885. ! \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
  1886. ! \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
  1887.   "
  1888.   }
  1889. ***************
  1890. *** 844,881 ****
  1891.   
  1892.   
  1893. ! echo checking how to declare yytext
  1894. ! # Figure out what yytext is by creating a minimal parser and
  1895. ! # examining the (preprocessed, in case macros are used) output.
  1896. ! if test "z${DECLARE_YYTEXT}" = "z"; then
  1897.     echo '%%
  1898.   %%' | ${LEX}
  1899. !   if test -f lex.yy.c; then
  1900. !     LEX_OUTPUT_ROOT=lex.yy
  1901. !   elif test -f lexyy.c; then
  1902. !     LEX_OUTPUT_ROOT=lexyy
  1903. !   else
  1904. !     # Don't know what to do here.
  1905. !     echo "Can't find output from $LEX; assuming lex.yy.c." 1>&2
  1906. !     LEX_OUTPUT_ROOT=lex.yy
  1907. !   fi
  1908. !   DECLARE_YYTEXT=`eval ${CPP} "${LEX_OUTPUT_ROOT}.c" |
  1909. !     sed -n '/extern.*yytext[^a-zA-Z0-9_]/s/^.*extern/extern/p'`
  1910. !   rm -f "${LEX_OUTPUT_ROOT}.c"
  1911. ! fi
  1912.   {
  1913.   test -n "$verbose" && \
  1914. ! echo "    defining" DECLARE_YYTEXT to be $DECLARE_YYTEXT
  1915. ! echo "#define" DECLARE_YYTEXT $DECLARE_YYTEXT >> confdefs.h
  1916. ! DEFS="$DEFS -DDECLARE_YYTEXT=$DECLARE_YYTEXT"
  1917. ! SEDDEFS="${SEDDEFS}\${SEDdA}DECLARE_YYTEXT\${SEDdB}DECLARE_YYTEXT\${SEDdC}$DECLARE_YYTEXT\${SEDdD}
  1918. ! \${SEDuA}DECLARE_YYTEXT\${SEDuB}DECLARE_YYTEXT\${SEDuC}$DECLARE_YYTEXT\${SEDuD}
  1919. ! \${SEDeA}DECLARE_YYTEXT\${SEDeB}DECLARE_YYTEXT\${SEDeC}$DECLARE_YYTEXT\${SEDeD}
  1920.   "
  1921.   }
  1922.   
  1923.   
  1924.   echo checking for window system libraries
  1925. ! cat > conftest.c <<EOF
  1926.   #include "confdefs.h"
  1927.   #include "$srcdir/lib/c-auto.h.in"
  1928. --- 1191,1244 ----
  1929.   
  1930.   
  1931. ! test -n "$silent" || echo "checking for yytext declaration"
  1932. ! # POSIX says lex can declare yytext either as a pointer or an array; the
  1933. ! # default is implementation-dependent. Figure out which it is, since
  1934. ! # not all implementations provide the %pointer and %array declarations.
  1935. ! #
  1936. ! # The minimal lex program is just a single line: %%.  But some broken lexes
  1937. ! # (Solaris, I think it was) want two %% lines, so accommodate them.
  1938.     echo '%%
  1939.   %%' | ${LEX}
  1940. ! if test -f lex.yy.c; then
  1941. !   LEX_OUTPUT_ROOT=lex.yy
  1942. ! elif test -f lexyy.c; then
  1943. !   LEX_OUTPUT_ROOT=lexyy
  1944. ! else
  1945. !   # Don't know what to do here.
  1946. !   echo "configure: cannot find output from $LEX" >&2; exit 1
  1947. !   LEX_OUTPUT_ROOT=
  1948. ! fi
  1949. ! if test -n "$LEX_OUTPUT_ROOT"; then
  1950. !   echo 'extern char *yytext; main () { exit (0); }' >>$LEX_OUTPUT_ROOT.c
  1951. !   ac_save_LIBS="$LIBS"
  1952. !   LIBS="$LIBS $LEXLIB"
  1953. !   cat > conftest.${ac_ext} <<EOF
  1954. ! #include "confdefs.h"
  1955. ! `cat $LEX_OUTPUT_ROOT.c`
  1956. ! EOF
  1957. ! eval $ac_compile
  1958. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1959. !   
  1960.   {
  1961.   test -n "$verbose" && \
  1962. ! echo "    defining YYTEXT_POINTER"
  1963. ! echo "#define" YYTEXT_POINTER "1" >> confdefs.h
  1964. ! DEFS="$DEFS -DYYTEXT_POINTER=1"
  1965. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}YYTEXT_POINTER\${ac_dB}YYTEXT_POINTER\${ac_dC}1\${ac_dD}
  1966. ! \${ac_uA}YYTEXT_POINTER\${ac_uB}YYTEXT_POINTER\${ac_uC}1\${ac_uD}
  1967. ! \${ac_eA}YYTEXT_POINTER\${ac_eB}YYTEXT_POINTER\${ac_eC}1\${ac_eD}
  1968.   "
  1969.   }
  1970.   
  1971.   
  1972. + fi
  1973. + rm -fr conftest*
  1974. +   LIBS="$ac_save_LIBS"
  1975. +   rm -f "${LEX_OUTPUT_ROOT}.c"
  1976. + fi
  1977.   echo checking for window system libraries
  1978. ! cat > conftest.${ac_ext} <<EOF
  1979.   #include "confdefs.h"
  1980.   #include "$srcdir/lib/c-auto.h.in"
  1981. ***************
  1982. *** 885,890 ****
  1983.   
  1984.   EOF
  1985. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1986. ! if test -z "$err"; then
  1987.     rm -rf conftest*
  1988.     SUNWIN=t
  1989. --- 1248,1255 ----
  1990.   
  1991.   EOF
  1992. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1993. ! # the parens.
  1994. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1995. ! if test -z "$ac_err"; then
  1996.     rm -rf conftest*
  1997.     SUNWIN=t
  1998. ***************
  1999. *** 893,897 ****
  2000.   fi
  2001.   rm -f conftest*
  2002. ! cat > conftest.c <<EOF
  2003.   #include "confdefs.h"
  2004.   #include "$srcdir/lib/c-auto.h.in"
  2005. --- 1258,1262 ----
  2006.   fi
  2007.   rm -f conftest*
  2008. ! cat > conftest.${ac_ext} <<EOF
  2009.   #include "confdefs.h"
  2010.   #include "$srcdir/lib/c-auto.h.in"
  2011. ***************
  2012. *** 901,906 ****
  2013.   
  2014.   EOF
  2015. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2016. ! if test -z "$err"; then
  2017.     rm -rf conftest*
  2018.     XVIEWWIN=t
  2019. --- 1266,1273 ----
  2020.   
  2021.   EOF
  2022. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2023. ! # the parens.
  2024. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2025. ! if test -z "$ac_err"; then
  2026.     rm -rf conftest*
  2027.     XVIEWWIN=t
  2028. ***************
  2029. *** 909,913 ****
  2030.   fi
  2031.   rm -f conftest*
  2032. ! cat > conftest.c <<EOF
  2033.   #include "confdefs.h"
  2034.   #include "$srcdir/lib/c-auto.h.in"
  2035. --- 1276,1280 ----
  2036.   fi
  2037.   rm -f conftest*
  2038. ! cat > conftest.${ac_ext} <<EOF
  2039.   #include "confdefs.h"
  2040.   #include "$srcdir/lib/c-auto.h.in"
  2041. ***************
  2042. *** 917,922 ****
  2043.   
  2044.   EOF
  2045. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2046. ! if test -z "$err"; then
  2047.     rm -rf conftest*
  2048.     X11WIN=t
  2049. --- 1284,1291 ----
  2050.   
  2051.   EOF
  2052. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2053. ! # the parens.
  2054. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2055. ! if test -z "$ac_err"; then
  2056.     rm -rf conftest*
  2057.     X11WIN=t
  2058. ***************
  2059. *** 925,929 ****
  2060.   fi
  2061.   rm -f conftest*
  2062. ! cat > conftest.c <<EOF
  2063.   #include "confdefs.h"
  2064.   #include "$srcdir/lib/c-auto.h.in"
  2065. --- 1294,1298 ----
  2066.   fi
  2067.   rm -f conftest*
  2068. ! cat > conftest.${ac_ext} <<EOF
  2069.   #include "confdefs.h"
  2070.   #include "$srcdir/lib/c-auto.h.in"
  2071. ***************
  2072. *** 933,938 ****
  2073.   
  2074.   EOF
  2075. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2076. ! if test -z "$err"; then
  2077.     rm -rf conftest*
  2078.     X10WIN=t
  2079. --- 1302,1309 ----
  2080.   
  2081.   EOF
  2082. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2083. ! # the parens.
  2084. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2085. ! if test -z "$ac_err"; then
  2086.     rm -rf conftest*
  2087.     X10WIN=t
  2088. ***************
  2089. *** 948,974 ****
  2090.     # If we find X, set shell vars x_includes and x_libraries to the paths.
  2091.   no_x=true
  2092. ! echo checking for X include and library files with xmkmf
  2093.   rm -fr conftestdir
  2094.   if mkdir conftestdir; then
  2095.     cd conftestdir
  2096. !   cat > Imakefile <<\EOF
  2097.   acfindx:
  2098. !     @echo "im_incroot=$(INCROOT); im_usrlibdir=$(USRLIBDIR); im_libdir=$(LIBDIR)"
  2099.   EOF
  2100.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2101.       no_x=
  2102.       # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2103. !     eval `make acfindx | grep -v make`
  2104.       # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2105. !     if test ! -f $im_usrlibdir/libX11.a && test -f $im_libdir/libX11.a; then
  2106. !       im_usrlibdir=$im_libdir
  2107.       fi
  2108. !     case "$im_incroot" in
  2109.       /usr/include) ;;
  2110. !     *) x_includes="$im_incroot" ;;
  2111.       esac
  2112. !     case "$im_usrlibdir" in
  2113.       /usr/lib | /lib) ;;
  2114. !     *) x_libraries="$im_usrlibdir" ;;
  2115.       esac
  2116.     fi
  2117. --- 1319,1348 ----
  2118.     # If we find X, set shell vars x_includes and x_libraries to the paths.
  2119.   no_x=true
  2120. ! if test "x$with_x" != xno; then
  2121. ! test -n "$silent" || echo "checking for X include and library files with xmkmf"
  2122.   rm -fr conftestdir
  2123.   if mkdir conftestdir; then
  2124.     cd conftestdir
  2125. !   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2126. !   cat > Imakefile <<'EOF'
  2127.   acfindx:
  2128. !     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2129.   EOF
  2130.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2131.       no_x=
  2132.       # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2133. !     eval `make acfindx 2>/dev/null | grep -v make`
  2134.       # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2135. !     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  2136. !     then
  2137. !       ac_im_usrlibdir=$ac_im_libdir
  2138.       fi
  2139. !     case "$ac_im_incroot" in
  2140.       /usr/include) ;;
  2141. !     *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
  2142.       esac
  2143. !     case "$ac_im_usrlibdir" in
  2144.       /usr/lib | /lib) ;;
  2145. !     *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
  2146.       esac
  2147.     fi
  2148. ***************
  2149. *** 977,988 ****
  2150.   fi
  2151.   
  2152. ! if test -z "$im_usrlibdir"; then
  2153. ! echo checking for X include and library files directly
  2154. ! cat > conftest.c <<EOF
  2155. ! #include "confdefs.h"
  2156. ! #include <X11/Intrinsic.h>
  2157. ! EOF
  2158. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2159. ! if test -z "$err"; then
  2160.     rm -rf conftest*
  2161.     no_x=
  2162. --- 1351,1370 ----
  2163.   fi
  2164.   
  2165. ! if test -z "$ac_im_usrlibdir"; then
  2166. ! test -n "$silent" || echo "checking for X include and library files directly"
  2167. ! if test ".$x_direct_test_library" = . ; then
  2168. !    x_direct_test_library='Xt'
  2169. ! fi
  2170. ! if test ".$x_direct_test_include" = . ; then
  2171. !    x_direct_test_include='X11/Intrinsic.h'
  2172. ! fi
  2173. ! cat > conftest.${ac_ext} <<EOF
  2174. ! #include "confdefs.h"
  2175. ! #include <$x_direct_test_include>
  2176. ! EOF
  2177. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2178. ! # the parens.
  2179. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2180. ! if test -z "$ac_err"; then
  2181.     rm -rf conftest*
  2182.     no_x=
  2183. ***************
  2184. *** 990,1009 ****
  2185.   else
  2186.     rm -rf conftest*
  2187. !   for dir in \
  2188. !     /usr/local/include \
  2189. !     /usr/unsupported/include \
  2190. !     /usr/x386/include \
  2191. !     /usr/local/x11r5/include \
  2192. !     /usr/include/X11R5 \
  2193. !     /usr/include/X11R4 \
  2194. !     /usr/X11R5/include \
  2195. !     /usr/X11/include \
  2196. !     /usr/openwin/include \
  2197.       /usr/openwin/share/include \
  2198. -     /usr/lpp/Xamples/include \
  2199.       ; \
  2200.     do
  2201. !     if test -r $dir/X11/Intrinsic.h; then
  2202. !       x_includes=$dir; no_x=
  2203.         break
  2204.       fi
  2205. --- 1372,1415 ----
  2206.   else
  2207.     rm -rf conftest*
  2208. !   for ac_dir in               \
  2209. !     /usr/X11R6/include        \
  2210. !     /usr/X11R5/include        \
  2211. !     /usr/X11R4/include        \
  2212. !                               \
  2213. !     /usr/include/X11R6        \
  2214. !     /usr/include/X11R5        \
  2215. !     /usr/include/X11R4        \
  2216. !                               \
  2217. !     /usr/local/X11R6/include  \
  2218. !     /usr/local/X11R5/include  \
  2219. !     /usr/local/X11R4/include  \
  2220. !                               \
  2221. !     /usr/local/include/X11R6  \
  2222. !     /usr/local/include/X11R5  \
  2223. !     /usr/local/include/X11R4  \
  2224. !                               \
  2225. !     /usr/X11/include          \
  2226. !     /usr/include/X11          \
  2227. !     /usr/local/X11/include    \
  2228. !     /usr/local/include/X11    \
  2229. !                               \
  2230. !     /usr/X386/include         \
  2231. !     /usr/x386/include         \
  2232. !     /usr/XFree86/include/X11  \
  2233. !                               \
  2234. !     /usr/include              \
  2235. !     /usr/local/include        \
  2236. !     /usr/unsupported/include  \
  2237. !     /usr/athena/include       \
  2238. !     /usr/local/x11r5/include  \
  2239. !     /usr/lpp/Xamples/include  \
  2240. !                               \
  2241. !     /usr/openwin/include      \
  2242.       /usr/openwin/share/include \
  2243.       ; \
  2244.     do
  2245. !     if test -r "$ac_dir/$x_direct_test_include"; then
  2246. !       test -z "$x_includes" && x_includes=$ac_dir
  2247. !       no_x=
  2248.         break
  2249.       fi
  2250. ***************
  2251. *** 1014,1053 ****
  2252.   # Check for the libraries.  First see if replacing the `include' by
  2253.   # `lib' works.
  2254. ! LIBS_save="${LIBS}"
  2255. ! LIBS="${LIBS} -lXt"
  2256. ! have_lib=""
  2257. ! echo checking for -lXt
  2258. ! cat > conftest.c <<EOF
  2259.   #include "confdefs.h"
  2260.   
  2261. ! int main() { exit(0); }
  2262. ! int t() { main(); }
  2263.   EOF
  2264. ! if eval $compile; then
  2265.     rm -rf conftest*
  2266. !   have_lib="1"
  2267.   
  2268.   fi
  2269.   rm -f conftest*
  2270. ! LIBS="${LIBS_save}"
  2271. ! if test -n "${have_lib}"; then
  2272.      :; no_x=
  2273.   else
  2274. !    :; for dir in `echo "$x_includes" | sed s/include/lib/` \
  2275. !   /usr/local/lib \
  2276. !   /usr/unsupported/lib \
  2277. !   /usr/x386/lib \
  2278. !   /usr/local/x11r5/lib \
  2279. !   /usr/lib/X11 \
  2280. !   /usr/lib/X11R4 \
  2281. !   /usr/X11R5/lib \
  2282. !   /usr/X11/lib \
  2283. !   /usr/openwin/lib \
  2284. !   /usr/lpp/Xamples/lib \
  2285. !   ; \
  2286.   do
  2287. !   for extension in a so sl; do
  2288. !     if test -r $dir/libXt.$extension; then
  2289. !       x_libraries=$dir; no_x=
  2290.         break 2
  2291.       fi
  2292. --- 1420,1484 ----
  2293.   # Check for the libraries.  First see if replacing the `include' by
  2294.   # `lib' works.
  2295. ! ac_save_LIBS="${LIBS}"
  2296. ! LIBS="${LIBS} -l"$x_direct_test_library""
  2297. ! ac_have_lib=""
  2298. ! test -n "$silent" || echo "checking for -l"$x_direct_test_library""
  2299. ! cat > conftest.${ac_ext} <<EOF
  2300.   #include "confdefs.h"
  2301.   
  2302. ! int main() { return 0; }
  2303. ! int t() { main();; return 0; }
  2304.   EOF
  2305. ! if eval $ac_compile; then
  2306.     rm -rf conftest*
  2307. !   ac_have_lib="1"
  2308.   
  2309.   fi
  2310.   rm -f conftest*
  2311. ! LIBS="${ac_save_LIBS}"
  2312. ! if test -n "${ac_have_lib}"; then
  2313.      :; no_x=
  2314.   else
  2315. !    :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
  2316. !     /usr/X11R6/lib        \
  2317. !     /usr/X11R5/lib        \
  2318. !     /usr/X11R4/lib        \
  2319. !                           \
  2320. !     /usr/lib/X11R6        \
  2321. !     /usr/lib/X11R5        \
  2322. !     /usr/lib/X11R4        \
  2323. !                           \
  2324. !     /usr/local/X11R6/lib  \
  2325. !     /usr/local/X11R5/lib  \
  2326. !     /usr/local/X11R4/lib  \
  2327. !                           \
  2328. !     /usr/local/lib/X11R6  \
  2329. !     /usr/local/lib/X11R5  \
  2330. !     /usr/local/lib/X11R4  \
  2331. !                           \
  2332. !     /usr/X11/lib          \
  2333. !     /usr/lib/X11          \
  2334. !     /usr/local/X11/lib    \
  2335. !     /usr/local/lib/X11    \
  2336. !                           \
  2337. !     /usr/X386/lib         \
  2338. !     /usr/x386/lib         \
  2339. !     /usr/XFree86/lib/X11  \
  2340. !                           \
  2341. !     /usr/lib              \
  2342. !     /usr/local/lib        \
  2343. !     /usr/unsupported/lib  \
  2344. !     /usr/athena/lib       \
  2345. !     /usr/local/x11r5/lib  \
  2346. !     /usr/lpp/Xamples/lib  \
  2347. !                           \
  2348. !     /usr/openwin/lib      \
  2349. !     /usr/openwin/share/lib \
  2350. !     ; \
  2351.   do
  2352. !   for ac_extension in a so sl; do
  2353. !     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  2354. !       test -z "$x_libraries" && x_libraries=$ac_dir
  2355. !       no_x=
  2356.         break 2
  2357.       fi
  2358. ***************
  2359. *** 1057,1141 ****
  2360.   
  2361.   fi
  2362. ! if test -n "$verbose"; then
  2363. !   test -n "$x_includes" && echo "    found X11 headers in $x_includes"
  2364. !   test -n "$x_libraries" && echo "    found X11 libraries in $x_libraries"
  2365.   fi
  2366.     
  2367.   if test -n "$x_includes"; then
  2368. !   x_include_flags=-I$x_includes
  2369.   elif test -n "$no_x"; then 
  2370.     # Not all programs may use this symbol, but it won't hurt to define it.
  2371. !   x_include_flags=-DX_DISPLAY_MISSING
  2372.   fi
  2373. ! #
  2374. ! # It would be nice to have a more robust check for the -R ld option then
  2375.   # just checking for Solaris.
  2376. - # 
  2377.   # It would also be nice to do this for all -L options, not just this one.
  2378.   if test -n "$x_libraries"; then
  2379. !   x_lib_flags=-L$x_libraries
  2380. !   if test "`uname 2>/dev/null`" = SunOS \
  2381.        && uname -r | grep '^5' >/dev/null; then
  2382. !     x_lib_flags="$x_lib_flags -R$x_libraries"
  2383.     fi
  2384.   fi
  2385. ! #
  2386. ! # Check for additional X libraries.
  2387. ! # 
  2388. ! # Since we already have an explicit check for POSIXified ISC, assume
  2389. ! # it's been used.
  2390.   if test -n "$ISC"; then
  2391. !   x_extra_libs="$x_extra_libs -lnsl_s -linet"
  2392. !   test -n "$verbose" && echo "    adding -lnsl_s -linet to x_extra_libs (for ISC)"
  2393.   else
  2394.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2395.     # libraries were built with DECnet support.  And karl@cs.umb.edu's Alpha
  2396. !   # needs dnet_stub.
  2397. !   LIBS_save="${LIBS}"
  2398.   LIBS="${LIBS} -ldnet"
  2399. ! have_lib=""
  2400. ! echo checking for -ldnet
  2401. ! cat > conftest.c <<EOF
  2402.   #include "confdefs.h"
  2403.   
  2404. ! int main() { exit(0); }
  2405. ! int t() { main(); }
  2406.   EOF
  2407. ! if eval $compile; then
  2408.     rm -rf conftest*
  2409. !   have_lib="1"
  2410.   
  2411.   fi
  2412.   rm -f conftest*
  2413. ! LIBS="${LIBS_save}"
  2414. ! if test -n "${have_lib}"; then
  2415. !    :; x_extra_libs="$x_extra_libs -ldnet"
  2416. !      have_dnet=t
  2417. !      test -n "$verbose" && echo "    adding -ldnet to x_extra_libs"
  2418.   else
  2419.      :; 
  2420.   fi
  2421.   
  2422. !   if test -z "$have_dnet"; then
  2423. !     LIBS_save="${LIBS}"
  2424.   LIBS="${LIBS} -ldnet_stub"
  2425. ! have_lib=""
  2426. ! echo checking for -ldnet_stub
  2427. ! cat > conftest.c <<EOF
  2428.   #include "confdefs.h"
  2429.   
  2430. ! int main() { exit(0); }
  2431. ! int t() { main(); }
  2432.   EOF
  2433. ! if eval $compile; then
  2434.     rm -rf conftest*
  2435. !   have_lib="1"
  2436.   
  2437.   fi
  2438.   rm -f conftest*
  2439. ! LIBS="${LIBS_save}"
  2440. ! if test -n "${have_lib}"; then
  2441. !    :; x_extra_libs="$x_extra_libs -ldnet_stub"
  2442. !        test -n "$verbose" && echo "    adding -ldnet_stub to x_extra_libs"
  2443.   else
  2444.      :; 
  2445. --- 1488,1623 ----
  2446.   
  2447.   fi
  2448. ! test -n "$x_includes" && test -n "$verbose" && echo "    X11 headers are in $x_includes"
  2449. ! test -n "$x_libraries" && test -n "$verbose" && echo "    X11 libraries are in $x_libraries"
  2450.   fi
  2451.     
  2452. + test -n "$silent" || echo "checking for additional X libraries and flags"
  2453.   if test -n "$x_includes"; then
  2454. !   X_CFLAGS="$X_CFLAGS -I$x_includes"
  2455.   elif test -n "$no_x"; then 
  2456.     # Not all programs may use this symbol, but it won't hurt to define it.
  2457. !   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  2458.   fi
  2459. ! # It would be nice to have a more robust check for the -R ld option than
  2460.   # just checking for Solaris.
  2461.   # It would also be nice to do this for all -L options, not just this one.
  2462.   if test -n "$x_libraries"; then
  2463. !   X_LIBS="$X_LIBS -L$x_libraries"
  2464. !   if test "`(uname) 2>/dev/null`" = SunOS \
  2465.        && uname -r | grep '^5' >/dev/null; then
  2466. !     X_LIBS="$X_LIBS -R$x_libraries"
  2467.     fi
  2468.   fi
  2469. ! # Check for libraries that R6 introduced. Xt/Xaw programs need these, at
  2470. ! # least xdvi(k) on Ultrix.
  2471. ! save_ldflags=$LDFLAGS
  2472. ! save_libs=$LIBS
  2473. ! LDFLAGS="$LDFLAGS -L$x_libraries"
  2474. ! ac_save_LIBS="${LIBS}"
  2475. ! LIBS="${LIBS} -lICE"
  2476. ! ac_have_lib=""
  2477. ! test -n "$silent" || echo "checking for -lICE"
  2478. ! cat > conftest.${ac_ext} <<EOF
  2479. ! #include "confdefs.h"
  2480. ! int main() { return 0; }
  2481. ! int t() { main();; return 0; }
  2482. ! EOF
  2483. ! if eval $ac_compile; then
  2484. !   rm -rf conftest*
  2485. !   ac_have_lib="1"
  2486. ! fi
  2487. ! rm -f conftest*
  2488. ! LIBS="${ac_save_LIBS}"
  2489. ! if test -n "${ac_have_lib}"; then
  2490. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -lICE"
  2491. ! else
  2492. !    :; 
  2493. ! fi
  2494. ! # SM needs ICE to (dynamically) link under SunOS 4.x.
  2495. ! # (From interran@uluru.Stanford.EDU.)
  2496. ! LIBS="$LIBS -lICE"
  2497. ! ac_save_LIBS="${LIBS}"
  2498. ! LIBS="${LIBS} -lSM"
  2499. ! ac_have_lib=""
  2500. ! test -n "$silent" || echo "checking for -lSM"
  2501. ! cat > conftest.${ac_ext} <<EOF
  2502. ! #include "confdefs.h"
  2503. ! int main() { return 0; }
  2504. ! int t() { main();; return 0; }
  2505. ! EOF
  2506. ! if eval $ac_compile; then
  2507. !   rm -rf conftest*
  2508. !   ac_have_lib="1"
  2509. ! fi
  2510. ! rm -f conftest*
  2511. ! LIBS="${ac_save_LIBS}"
  2512. ! if test -n "${ac_have_lib}"; then
  2513. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM"
  2514. ! else
  2515. !    :; 
  2516. ! fi
  2517. ! LDFLAGS=$save_ldflags
  2518. ! LIBS=$save_libs
  2519. ! # Check for system-dependent libraries X programs must link with.
  2520.   if test -n "$ISC"; then
  2521. !   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  2522.   else
  2523.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2524.     # libraries were built with DECnet support.  And karl@cs.umb.edu's Alpha
  2525. !   # needs dnet_stub (dnet doesn't exist).
  2526. !   ac_save_LIBS="${LIBS}"
  2527.   LIBS="${LIBS} -ldnet"
  2528. ! ac_have_lib=""
  2529. ! test -n "$silent" || echo "checking for -ldnet"
  2530. ! cat > conftest.${ac_ext} <<EOF
  2531.   #include "confdefs.h"
  2532.   
  2533. ! int main() { return 0; }
  2534. ! int t() { main();; return 0; }
  2535.   EOF
  2536. ! if eval $ac_compile; then
  2537.     rm -rf conftest*
  2538. !   ac_have_lib="1"
  2539.   
  2540.   fi
  2541.   rm -f conftest*
  2542. ! LIBS="${ac_save_LIBS}"
  2543. ! if test -n "${ac_have_lib}"; then
  2544. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  2545. !      ac_have_dnet=t
  2546.   else
  2547.      :; 
  2548.   fi
  2549.   
  2550. !   if test -z "$ac_have_dnet"; then
  2551. !     ac_save_LIBS="${LIBS}"
  2552.   LIBS="${LIBS} -ldnet_stub"
  2553. ! ac_have_lib=""
  2554. ! test -n "$silent" || echo "checking for -ldnet_stub"
  2555. ! cat > conftest.${ac_ext} <<EOF
  2556.   #include "confdefs.h"
  2557.   
  2558. ! int main() { return 0; }
  2559. ! int t() { main();; return 0; }
  2560.   EOF
  2561. ! if eval $ac_compile; then
  2562.     rm -rf conftest*
  2563. !   ac_have_lib="1"
  2564.   
  2565.   fi
  2566.   rm -f conftest*
  2567. ! LIBS="${ac_save_LIBS}"
  2568. ! if test -n "${ac_have_lib}"; then
  2569. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  2570.   else
  2571.      :; 
  2572. ***************
  2573. *** 1143,1195 ****
  2574.   
  2575.     fi
  2576. !   # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2577. !   # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  2578. !   LIBS_save="${LIBS}"
  2579. ! LIBS="${LIBS} -lsocket"
  2580. ! have_lib=""
  2581. ! echo checking for -lsocket
  2582. ! cat > conftest.c <<EOF
  2583.   #include "confdefs.h"
  2584.   
  2585. ! int main() { exit(0); }
  2586. ! int t() { main(); }
  2587.   EOF
  2588. ! if eval $compile; then
  2589.     rm -rf conftest*
  2590. !   have_lib="1"
  2591.   
  2592.   fi
  2593.   rm -f conftest*
  2594. ! LIBS="${LIBS_save}"
  2595. ! if test -n "${have_lib}"; then
  2596. !    :; x_extra_libs="$x_extra_libs -lsocket"
  2597. !      test -n "$verbose" && echo "    adding -lsocket to x_extra_libs"
  2598.   else
  2599.      :; 
  2600.   fi
  2601.   
  2602. ! fi
  2603. ! #
  2604. !   if test -z "$Xextlib"; then
  2605. !     LIBS_save="${LIBS}"
  2606. ! LIBS="${LIBS} -lXext"
  2607. ! have_lib=""
  2608. ! echo checking for -lXext
  2609. ! cat > conftest.c <<EOF
  2610.   #include "confdefs.h"
  2611.   
  2612. ! int main() { exit(0); }
  2613. ! int t() { main(); }
  2614.   EOF
  2615. ! if eval $compile; then
  2616.     rm -rf conftest*
  2617. !   have_lib="1"
  2618.   
  2619.   fi
  2620.   rm -f conftest*
  2621. ! LIBS="${LIBS_save}"
  2622. ! if test -n "${have_lib}"; then
  2623. !    :; Xextlib=-lXext
  2624.   else
  2625.      :; 
  2626. --- 1625,1679 ----
  2627.   
  2628.     fi
  2629. !   #
  2630. !   # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT.
  2631. !   # Not sure which flavor of 386 Unix this is, but it seems harmless to
  2632. !   # check for it.
  2633. !   ac_save_LIBS="${LIBS}"
  2634. ! LIBS="${LIBS} -lnsl"
  2635. ! ac_have_lib=""
  2636. ! test -n "$silent" || echo "checking for -lnsl"
  2637. ! cat > conftest.${ac_ext} <<EOF
  2638.   #include "confdefs.h"
  2639.   
  2640. ! int main() { return 0; }
  2641. ! int t() { main();; return 0; }
  2642.   EOF
  2643. ! if eval $ac_compile; then
  2644.     rm -rf conftest*
  2645. !   ac_have_lib="1"
  2646.   
  2647.   fi
  2648.   rm -f conftest*
  2649. ! LIBS="${ac_save_LIBS}"
  2650. ! if test -n "${ac_have_lib}"; then
  2651. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  2652.   else
  2653.      :; 
  2654.   fi
  2655.   
  2656. !   #
  2657. !   # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2658. !   # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  2659. !   # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  2660. !   if test "`(uname) 2>/dev/null`" != IRIX; then
  2661. !     ac_save_LIBS="${LIBS}"
  2662. ! LIBS="${LIBS} -lsocket"
  2663. ! ac_have_lib=""
  2664. ! test -n "$silent" || echo "checking for -lsocket"
  2665. ! cat > conftest.${ac_ext} <<EOF
  2666.   #include "confdefs.h"
  2667.   
  2668. ! int main() { return 0; }
  2669. ! int t() { main();; return 0; }
  2670.   EOF
  2671. ! if eval $ac_compile; then
  2672.     rm -rf conftest*
  2673. !   ac_have_lib="1"
  2674.   
  2675.   fi
  2676.   rm -f conftest*
  2677. ! LIBS="${ac_save_LIBS}"
  2678. ! if test -n "${ac_have_lib}"; then
  2679. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
  2680.   else
  2681.      :; 
  2682. ***************
  2683. *** 1197,1201 ****
  2684.   
  2685.     fi
  2686. !   wlibs="-lXt $Xextlib -lX11 $wlibs"
  2687.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  2688.   fi
  2689. --- 1681,1691 ----
  2690.   
  2691.     fi
  2692. ! fi
  2693. ! #
  2694. ! test -n "$verbose" && echo "    X compiler flags: $X_CFLAGS"
  2695. ! test -n "$verbose" && echo "    X library flags: $X_LIBS"
  2696. ! test -n "$verbose" && echo "    extra X libraries: $X_EXTRA_LIBS"
  2697. !   wlibs="-lXt $X_EXTRA_LIBS -lX11 $wlibs"
  2698.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  2699.   fi
  2700. ***************
  2701. *** 1213,1217 ****
  2702.   # If `small' version is not wanted, do nothing -- make will copy the
  2703.   # default change file.
  2704. ! cat > conftest.c <<EOF
  2705.   #include "confdefs.h"
  2706.   #include "$srcdir/lib/c-auto.h.in"
  2707. --- 1703,1707 ----
  2708.   # If `small' version is not wanted, do nothing -- make will copy the
  2709.   # default change file.
  2710. ! cat > conftest.${ac_ext} <<EOF
  2711.   #include "confdefs.h"
  2712.   #include "$srcdir/lib/c-auto.h.in"
  2713. ***************
  2714. *** 1221,1226 ****
  2715.   
  2716.   EOF
  2717. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2718. ! if test -z "$err"; then
  2719.     rm -rf conftest*
  2720.     SMALLTeX=t
  2721. --- 1711,1718 ----
  2722.   
  2723.   EOF
  2724. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2725. ! # the parens.
  2726. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2727. ! if test -z "$ac_err"; then
  2728.     rm -rf conftest*
  2729.     SMALLTeX=t
  2730. ***************
  2731. *** 1235,1244 ****
  2732.   {
  2733.   test -n "$verbose" && \
  2734. ! echo "    defining" GLUERATIO_TYPE to be float
  2735. ! echo "#define" GLUERATIO_TYPE float >> confdefs.h
  2736.   DEFS="$DEFS -DGLUERATIO_TYPE=float"
  2737. ! SEDDEFS="${SEDDEFS}\${SEDdA}GLUERATIO_TYPE\${SEDdB}GLUERATIO_TYPE\${SEDdC}float\${SEDdD}
  2738. ! \${SEDuA}GLUERATIO_TYPE\${SEDuB}GLUERATIO_TYPE\${SEDuC}float\${SEDuD}
  2739. ! \${SEDeA}GLUERATIO_TYPE\${SEDeB}GLUERATIO_TYPE\${SEDeC}float\${SEDeD}
  2740.   "
  2741.   }
  2742. --- 1727,1736 ----
  2743.   {
  2744.   test -n "$verbose" && \
  2745. ! echo "    defining" GLUERATIO_TYPE to be "float"
  2746. ! echo "#define" GLUERATIO_TYPE "float" >> confdefs.h
  2747.   DEFS="$DEFS -DGLUERATIO_TYPE=float"
  2748. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}GLUERATIO_TYPE\${ac_dB}GLUERATIO_TYPE\${ac_dC}float\${ac_dD}
  2749. ! \${ac_uA}GLUERATIO_TYPE\${ac_uB}GLUERATIO_TYPE\${ac_uC}float\${ac_uD}
  2750. ! \${ac_eA}GLUERATIO_TYPE\${ac_eB}GLUERATIO_TYPE\${ac_eC}float\${ac_eD}
  2751.   "
  2752.   }
  2753. ***************
  2754. *** 1247,1251 ****
  2755.   
  2756.   # Metafont next.
  2757. ! cat > conftest.c <<EOF
  2758.   #include "confdefs.h"
  2759.   #include "$srcdir/lib/c-auto.h.in"
  2760. --- 1739,1743 ----
  2761.   
  2762.   # Metafont next.
  2763. ! cat > conftest.${ac_ext} <<EOF
  2764.   #include "confdefs.h"
  2765.   #include "$srcdir/lib/c-auto.h.in"
  2766. ***************
  2767. *** 1255,1260 ****
  2768.   
  2769.   EOF
  2770. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2771. ! if test -z "$err"; then
  2772.     rm -rf conftest*
  2773.     SMALLMF=t
  2774. --- 1747,1754 ----
  2775.   
  2776.   EOF
  2777. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2778. ! # the parens.
  2779. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2780. ! if test -z "$ac_err"; then
  2781.     rm -rf conftest*
  2782.     SMALLMF=t
  2783. ***************
  2784. *** 1269,1273 ****
  2785.   
  2786.   # And finally BibTeX.
  2787. ! cat > conftest.c <<EOF
  2788.   #include "confdefs.h"
  2789.   #include "$srcdir/lib/c-auto.h.in"
  2790. --- 1763,1767 ----
  2791.   
  2792.   # And finally BibTeX.
  2793. ! cat > conftest.${ac_ext} <<EOF
  2794.   #include "confdefs.h"
  2795.   #include "$srcdir/lib/c-auto.h.in"
  2796. ***************
  2797. *** 1277,1282 ****
  2798.   
  2799.   EOF
  2800. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2801. ! if test -z "$err"; then
  2802.     rm -rf conftest*
  2803.     SMALLBibTeX=t
  2804. --- 1771,1778 ----
  2805.   
  2806.   EOF
  2807. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2808. ! # the parens.
  2809. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2810. ! if test -z "$ac_err"; then
  2811.     rm -rf conftest*
  2812.     SMALLBibTeX=t
  2813. ***************
  2814. *** 1291,1313 ****
  2815.   fi
  2816.   
  2817. ! # Set default prefixes.
  2818.   if test -n "$prefix"; then
  2819. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  2820. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2821.   fi
  2822.   if test -n "$exec_prefix"; then
  2823. !   prsub="$prsub
  2824.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2825.   fi
  2826.   # Quote sed substitution magic chars in DEFS.
  2827.   cat >conftest.def <<EOF
  2828.   $DEFS
  2829.   EOF
  2830. ! escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2831. ! DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  2832.   rm -f conftest.def
  2833.   # Substitute for predefined variables.
  2834.   
  2835. ! trap 'rm -f config.status; exit 1' 1 3 15
  2836.   echo creating config.status
  2837.   rm -f config.status
  2838. --- 1787,1821 ----
  2839.   fi
  2840.   
  2841. ! # The preferred way to propogate these variables is regular @ substitutions.
  2842.   if test -n "$prefix"; then
  2843. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2844. ! else
  2845. !   prefix=/usr/local
  2846.   fi
  2847.   if test -n "$exec_prefix"; then
  2848. !   ac_prsub="$ac_prsub
  2849.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2850. + else
  2851. +   exec_prefix='${prefix}' # Let make expand it.
  2852. + fi
  2853. + # Any assignment to VPATH causes Sun make to only execute
  2854. + # the first set of double-colon rules, so remove it if not needed.
  2855. + # If there is a colon in the path, we need to keep it.
  2856. + if test "x$srcdir" = x.; then
  2857. +   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2858.   fi
  2859.   # Quote sed substitution magic chars in DEFS.
  2860.   cat >conftest.def <<EOF
  2861.   $DEFS
  2862.   EOF
  2863. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2864. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  2865.   rm -f conftest.def
  2866.   # Substitute for predefined variables.
  2867.   
  2868. ! trap 'rm -f config.status; exit 1' 1 2 15
  2869.   echo creating config.status
  2870.   rm -f config.status
  2871. ***************
  2872. *** 1321,1331 ****
  2873.   # $0 $configure_args
  2874.   
  2875. ! for arg
  2876.   do
  2877. !   case "\$arg" in
  2878. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2879. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  2880. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  2881. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  2882.     esac
  2883.   done
  2884. --- 1829,1845 ----
  2885.   # $0 $configure_args
  2886.   
  2887. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  2888. ! for ac_option
  2889.   do
  2890. !   case "\$ac_option" in
  2891. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2892. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  2893. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  2894. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2895. !     echo "config.status generated by autoconf version 1.11"
  2896. !     exit 0 ;;
  2897. !   -help | --help | --hel | --he | --h)
  2898. !     echo "\$ac_cs_usage"; exit 0 ;;
  2899. !   *) echo "\$ac_cs_usage"; exit 1 ;;
  2900.     esac
  2901.   done
  2902. ***************
  2903. *** 1333,1337 ****
  2904.   trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2905.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2906. ! tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 3 15
  2907.   CC='$CC'
  2908.   CPP='$CPP'
  2909. --- 1847,1851 ----
  2910.   trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2911.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2912. ! tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 2 15
  2913.   CC='$CC'
  2914.   CPP='$CPP'
  2915. ***************
  2916. *** 1345,1379 ****
  2917.   LN_S='$LN_S'
  2918.   LEX_OUTPUT_ROOT='$LEX_OUTPUT_ROOT'
  2919. ! x_include_flags='$x_include_flags'
  2920. ! x_lib_flags='$x_lib_flags'
  2921. ! x_extra_libs='$x_extra_libs'
  2922.   wlibs='$wlibs'
  2923.   LIBS='$LIBS'
  2924.   srcdir='$srcdir'
  2925.   prefix='$prefix'
  2926.   exec_prefix='$exec_prefix'
  2927. ! prsub='$prsub'
  2928.   extrasub='$extrasub'
  2929.   EOF
  2930.   cat >> config.status <<\EOF
  2931.   
  2932. ! top_srcdir=$srcdir
  2933.   
  2934.   CONFIG_FILES=${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2935.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2936.   tex/Makefile web/Makefile web2c/Makefile"}
  2937. ! for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  2938. !   srcdir=$top_srcdir
  2939.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2940. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  2941. !   if test "$dir" != "$file"; then
  2942. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  2943. !     test ! -d $dir && mkdir $dir
  2944.     fi
  2945. !   echo creating $file
  2946. !   rm -f $file
  2947. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  2948. !   sed -e "
  2949. ! $prsub
  2950.   $extrasub
  2951.   s%@CC@%$CC%g
  2952. --- 1859,1938 ----
  2953.   LN_S='$LN_S'
  2954.   LEX_OUTPUT_ROOT='$LEX_OUTPUT_ROOT'
  2955. ! X_CFLAGS='$X_CFLAGS'
  2956. ! X_LIBS='$X_LIBS'
  2957. ! X_EXTRA_LIBS='$X_EXTRA_LIBS'
  2958.   wlibs='$wlibs'
  2959.   LIBS='$LIBS'
  2960.   srcdir='$srcdir'
  2961. + top_srcdir='$top_srcdir'
  2962.   prefix='$prefix'
  2963.   exec_prefix='$exec_prefix'
  2964. ! ac_prsub='$ac_prsub'
  2965. ! ac_vpsub='$ac_vpsub'
  2966.   extrasub='$extrasub'
  2967.   EOF
  2968.   cat >> config.status <<\EOF
  2969.   
  2970. ! ac_given_srcdir=$srcdir
  2971.   
  2972.   CONFIG_FILES=${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2973.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2974.   tex/Makefile web/Makefile web2c/Makefile"}
  2975. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  2976.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2977. !   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2978. !   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2979. !     # The file is in a subdirectory.
  2980. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2981. !     ac_dir_suffix="/$ac_dir"
  2982. !   else
  2983. !     ac_dir_suffix=
  2984.     fi
  2985. !   # A "../" for each directory in $ac_dir_suffix.
  2986. !   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2987. !   case "$ac_given_srcdir" in
  2988. !   .)  srcdir=.
  2989. !       if test -z "$ac_dir_suffix"; then top_srcdir=.
  2990. !       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2991. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2992. !   *) # Relative path.
  2993. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2994. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2995. !   esac
  2996. !   echo creating "$ac_file"
  2997. !   rm -f "$ac_file"
  2998. !   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  2999. !   case "$ac_file" in
  3000. !     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  3001. !     * )          echo "# $comment_str"     > "$ac_file" ;;
  3002. !   esac
  3003. !   # Replace lines of the form ac_include foo with the contents of foo:
  3004. !   # first, from the ac_include lines construct a list of sed
  3005. !   # commands to remove them, and include the files; then run sed.
  3006. !   # Have to use sed because old (Ultrix, SunOS) awk does not support
  3007. !   # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
  3008. !   # Use \@...@<cmd> form of sed address because the filename may contain /.
  3009. !   # Can't use only one -e and commands {dr foo} because foo has to be last.
  3010. !   # Use @e initially of -e because GNU echo has a -e option.
  3011. !   file_substs=`sed -n \
  3012. ! "/^ac_include/s%ac_include[     ]*\(.*\)%@e '\\\\\@^&@r \1' -e '\\\\\@^&@d'%p"\
  3013. !                $ac_given_srcdir/${ac_file}.in`
  3014. !   if test -n "$file_substs"; then
  3015. !     # Change @e back to -e.
  3016. !     file_subst_cmd="sed `echo $file_substs | sed s/@e/-e/g`"
  3017. !   else
  3018. !     # If no substitutions and hence no sed commands, don't choke.
  3019. !     file_subst_cmd=cat
  3020. !   fi
  3021. !   # cd into the srcdir because the files being included more or less
  3022. !   # must be part of the distribution. I can't find any way to do
  3023. !   # variable substitution in the sed commands (so the user could have,
  3024. !   # e.g., $top_srcdir in their ac_include line).
  3025. !   (cd $ac_given_srcdir && eval $file_subst_cmd ${ac_file}.in) \
  3026. !   | sed -e "
  3027. ! $ac_prsub
  3028. ! $ac_vpsub
  3029.   $extrasub
  3030.   s%@CC@%$CC%g
  3031. ***************
  3032. *** 1388,1425 ****
  3033.   s%@LN_S@%$LN_S%g
  3034.   s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  3035. ! s%@x_include_flags@%$x_include_flags%g
  3036. ! s%@x_lib_flags@%$x_lib_flags%g
  3037. ! s%@x_extra_libs@%$x_extra_libs%g
  3038.   s%@wlibs@%$wlibs%g
  3039.   s%@LIBS@%$LIBS%g
  3040.   s%@srcdir@%$srcdir%g
  3041. ! s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  3042.   fi; done
  3043.   
  3044. ! CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  3045. ! for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  3046. ! echo creating $file
  3047. ! # These sed commands are put into SEDDEFS when defining a macro.
  3048.   # They are broken into pieces to make the sed script easier to manage.
  3049.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3050.   # is the cpp macro being defined and VALUE is the value it is being given.
  3051.   # Each defining turns into a single global substitution command.
  3052.   #
  3053. ! # SEDd sets the value in "#define NAME VALUE" lines.
  3054. ! SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3055. ! SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  3056. ! SEDdC='\3'
  3057. ! SEDdD='@g'
  3058. ! # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3059. ! SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3060. ! SEDuB='\([     ]\)@\1#\2define\3'
  3061. ! SEDuC=' '
  3062. ! SEDuD='\4@g'
  3063. ! # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3064. ! SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3065. ! SEDeB='$@\1#\2define\3'
  3066. ! SEDeC=' '
  3067. ! SEDeD='@g'
  3068.   rm -f conftest.sed
  3069.   EOF
  3070. --- 1947,1985 ----
  3071.   s%@LN_S@%$LN_S%g
  3072.   s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  3073. ! s%@X_CFLAGS@%$X_CFLAGS%g
  3074. ! s%@X_LIBS@%$X_LIBS%g
  3075. ! s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  3076.   s%@wlibs@%$wlibs%g
  3077.   s%@LIBS@%$LIBS%g
  3078.   s%@srcdir@%$srcdir%g
  3079. ! s%@top_srcdir@%$top_srcdir%g
  3080. ! s%@prefix@%$prefix%g
  3081. ! s%@exec_prefix@%$exec_prefix%g
  3082. ! s%@DEFS@%-DHAVE_CONFIG_H%" >> $ac_file
  3083.   fi; done
  3084.   
  3085. ! # These sed commands are put into ac_sed_defs when defining a macro.
  3086.   # They are broken into pieces to make the sed script easier to manage.
  3087.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3088.   # is the cpp macro being defined and VALUE is the value it is being given.
  3089.   # Each defining turns into a single global substitution command.
  3090. + # Hopefully no one uses "!" as a variable value.
  3091. + # Other candidates for the sed separators, like , and @, do get used.
  3092.   #
  3093. ! # ac_d sets the value in "#define NAME VALUE" lines.
  3094. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3095. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  3096. ! ac_dC='\3'
  3097. ! ac_dD='!g'
  3098. ! # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3099. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3100. ! ac_uB='\([     ]\)!\1#\2define\3'
  3101. ! ac_uC=' '
  3102. ! ac_uD='\4!g'
  3103. ! # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3104. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3105. ! ac_eB='$!\1#\2define\3'
  3106. ! ac_eC=' '
  3107. ! ac_eD='!g'
  3108.   rm -f conftest.sed
  3109.   EOF
  3110. ***************
  3111. *** 1427,1447 ****
  3112.   rm -f conftest.sh
  3113.   cat > conftest.sh <<EOF
  3114. ! $SEDDEFS
  3115.   EOF
  3116.   
  3117. ! # Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  3118.   # on the size of here documents.
  3119.   
  3120.   # Maximum number of lines to put in a single here document.
  3121. ! maxshlines=9
  3122.   
  3123.   while :
  3124.   do
  3125. !   # wc gives bogus results for an empty file on some systems.
  3126. !   lines=`grep -c . conftest.sh`
  3127. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3128.     rm -f conftest.s1 conftest.s2
  3129. !   sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  3130. !   sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  3131.     # Write a limited-size here document to append to conftest.sed.
  3132.     echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3133. --- 1987,2007 ----
  3134.   rm -f conftest.sh
  3135.   cat > conftest.sh <<EOF
  3136. ! $ac_sed_defs
  3137.   EOF
  3138.   
  3139. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  3140.   # on the size of here documents.
  3141.   
  3142.   # Maximum number of lines to put in a single here document.
  3143. ! ac_max_sh_lines=9
  3144.   
  3145.   while :
  3146.   do
  3147. !   # wc gives bogus results for an empty file on some AIX systems.
  3148. !   ac_lines=`grep -c . conftest.sh`
  3149. !   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3150.     rm -f conftest.s1 conftest.s2
  3151. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  3152. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  3153.     # Write a limited-size here document to append to conftest.sed.
  3154.     echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3155. ***************
  3156. *** 1464,1494 ****
  3157.   rm -f conftest.h
  3158.   # Break up the sed commands because old seds have small limits.
  3159. ! maxsedlines=20
  3160. ! cp $top_srcdir/$file.in conftest.h1
  3161. ! while :
  3162. ! do
  3163. !   lines=`grep -c . conftest.sed`
  3164. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3165. !   rm -f conftest.s1 conftest.s2 conftest.h2
  3166. !   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  3167. !   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  3168. !   sed -f conftest.s1 < conftest.h1 > conftest.h2
  3169. !   rm -f conftest.s1 conftest.h1 conftest.sed
  3170. !   mv conftest.h2 conftest.h1
  3171. !   mv conftest.s2 conftest.sed
  3172. ! done
  3173. ! rm -f conftest.sed conftest.h
  3174. ! echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  3175. ! cat conftest.h1 >> conftest.h
  3176. ! rm -f conftest.h1
  3177. ! if cmp -s $file conftest.h 2>/dev/null; then
  3178. !   # The file exists and we would not be changing it.
  3179. !   echo "$file is unchanged"
  3180. !   rm -f conftest.h
  3181. ! else
  3182. !   rm -f $file
  3183. !   mv conftest.h $file
  3184. ! fi
  3185.   fi; done
  3186.   
  3187.   
  3188. --- 2024,2061 ----
  3189.   rm -f conftest.h
  3190.   # Break up the sed commands because old seds have small limits.
  3191. ! ac_max_sed_lines=20
  3192. ! CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  3193. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  3194. !   echo creating $ac_file
  3195. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  3196. !   cp conftest.sed conftest.stm
  3197. !   while :
  3198. !   do
  3199. !     ac_lines=`grep -c . conftest.stm`
  3200. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3201. !     rm -f conftest.s1 conftest.s2 conftest.h2
  3202. !     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  3203. !     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  3204. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  3205. !     rm -f conftest.s1 conftest.h1 conftest.stm
  3206. !     mv conftest.h2 conftest.h1
  3207. !     mv conftest.s2 conftest.stm
  3208. !   done
  3209. !   rm -f conftest.stm conftest.h
  3210. !   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3211. !   cat conftest.h1 >> conftest.h
  3212. !   rm -f conftest.h1
  3213. !   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3214. !     # The file exists and we would not be changing it.
  3215. !     echo "$ac_file is unchanged"
  3216. !     rm -f conftest.h
  3217. !   else
  3218. !     rm -f $ac_file
  3219. !     mv conftest.h $ac_file
  3220. !   fi
  3221.   fi; done
  3222. + rm -f conftest.sed
  3223.   
  3224.   
  3225. ***************
  3226. *** 1497,1500 ****
  3227.   EOF
  3228.   chmod +x config.status
  3229. ! ${CONFIG_SHELL-/bin/sh} config.status
  3230.   
  3231. --- 2064,2068 ----
  3232.   EOF
  3233.   chmod +x config.status
  3234. ! # Some shells look in PATH for config.status without the "./".
  3235. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  3236.   
  3237. *** web2c/lib/c-auto.h.in.save    Tue Feb  1 12:28:36 1994
  3238. --- web2c/lib/c-auto.h.in    Fri Sep 23 18:28:15 1994
  3239. ***************
  3240. *** 152,156 ****
  3241.   
  3242.   /* Define as the proper declaration for yytext.  */
  3243. ! #undef DECLARE_YYTEXT
  3244.   
  3245.   /* Define if you have dirent.h.  */
  3246. --- 152,161 ----
  3247.   
  3248.   /* Define as the proper declaration for yytext.  */
  3249. ! #undef YYTEXT_POINTER
  3250. ! #if YYTEXT_POINTER
  3251. ! #define DECLARE_YYTEXT extern char *yytext;
  3252. ! #else
  3253. ! #define DECLARE_YYTEXT extern char yytext[];
  3254. ! #endif
  3255.   
  3256.   /* Define if you have dirent.h.  */
  3257. *** web2c/lib/main.c.save    Tue May 25 11:41:19 1993
  3258. --- web2c/lib/main.c    Fri Sep 23 15:48:40 1994
  3259. ***************
  3260. *** 28,31 ****
  3261. --- 28,32 ----
  3262.     argc = ac;
  3263.     gargv = av;
  3264. +   kpse_set_progname(av[0]);
  3265.     main_body ();
  3266.     return EXIT_SUCCESS;
  3267. *** web2c/lib/openinout.c.save    Sat Dec  4 13:01:52 1993
  3268. --- web2c/lib/openinout.c    Wed Sep 28 16:26:41 1994
  3269. ***************
  3270. *** 125,128 ****
  3271. --- 125,131 ----
  3272.       kpse_file_format_type format;
  3273.   {
  3274. +   static boolean kpathsea_dpi_set = 0;
  3275. +   static boolean maketex_base_dpi_set = 0;
  3276.     string found;
  3277.     /* Since & is a no-op when applied to an array, we must put the
  3278. ***************
  3279. *** 130,133 ****
  3280. --- 133,149 ----
  3281.     string name = nameoffile;
  3282.     
  3283. +   if (!kpathsea_dpi_set)
  3284. +     {
  3285. +       if (!getenv ("KPATHSEA_DPI"))
  3286. +     xputenv_int ("KPATHSEA_DPI", 300);
  3287. +       kpathsea_dpi_set = 1;
  3288. +     }
  3289. +   if (!maketex_base_dpi_set)
  3290. +     {
  3291. +       if (!getenv ("MAKETEX_BASE_DPI"))
  3292. +     xputenv_int ("MAKETEX_BASE_DPI", 300);
  3293. +       maketex_base_dpi_set = 1;
  3294. +     }
  3295.     make_c_string (&name);
  3296.     found = kpse_make_tex (format, name);
  3297. *** web2c/lib/ourpaths.c.save    Sun Dec  5 12:48:44 1993
  3298. --- web2c/lib/ourpaths.c    Wed Sep 28 14:14:18 1994
  3299. ***************
  3300. *** 3,14 ****
  3301.   #include "config.h"
  3302.   
  3303. ! #include <kpathsea/filefmt.h>
  3304.   #include <kpathsea/fontmap.h>
  3305.   #include <kpathsea/pathsearch.h>
  3306.   
  3307.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  3308.      of directories to search for.  */
  3309. ! static string path_dirs[LAST_PATH];
  3310.   
  3311.   
  3312. --- 3,17 ----
  3313.   #include "config.h"
  3314.   
  3315. ! #include <kpathsea/cnf.h>
  3316. ! #include <kpathsea/default.h>
  3317. ! #include <kpathsea/expand.h>
  3318.   #include <kpathsea/fontmap.h>
  3319. + #include <kpathsea/paths.h>
  3320.   #include <kpathsea/pathsearch.h>
  3321. ! #include <kpathsea/tex-file.h>
  3322.   
  3323.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  3324.      of directories to search for.  */
  3325. ! static const_string path_dirs[LAST_PATH];
  3326.   
  3327.   
  3328. ***************
  3329. *** 23,60 ****
  3330.   {
  3331.     if (path_bits & BIBINPUTPATHBIT)
  3332. !     path_dirs[BIBINPUTPATH] = KPSE_BIB_PATH ();
  3333.   
  3334.     if (path_bits & BSTINPUTPATHBIT)
  3335. !     path_dirs[BSTINPUTPATH] = KPSE_BST_PATH ();
  3336.   
  3337.     if (path_bits & GFFILEPATHBIT)
  3338. !     path_dirs[GFFILEPATH] = KPSE_GF_PATH ();
  3339.   
  3340.     if (path_bits & MFBASEPATHBIT)
  3341. !     path_dirs[MFBASEPATH] = KPSE_BASE_PATH ();
  3342.   
  3343.     if (path_bits & MFINPUTPATHBIT)
  3344. !     path_dirs[MFINPUTPATH] = KPSE_MF_PATH ();
  3345.   
  3346.     if (path_bits & MFPOOLPATHBIT)
  3347. !     path_dirs[MFPOOLPATH] = KPSE_MFPOOL_PATH ();
  3348.   
  3349.     if (path_bits & PKFILEPATHBIT)
  3350. !     path_dirs[PKFILEPATH] = KPSE_PK_PATH ();
  3351.   
  3352.     if (path_bits & TEXFORMATPATHBIT)
  3353. !     path_dirs[TEXFORMATPATH] = KPSE_FMT_PATH ();
  3354.   
  3355.     if (path_bits & TEXINPUTPATHBIT)
  3356. !     path_dirs[TEXINPUTPATH] = KPSE_TEX_PATH ();
  3357.   
  3358.     if (path_bits & TEXPOOLPATHBIT)
  3359. !     path_dirs[TEXPOOLPATH] = KPSE_TEXPOOL_PATH ();
  3360.   
  3361.     if (path_bits & TFMFILEPATHBIT)
  3362. !     path_dirs[TFMFILEPATH] = KPSE_TFM_PATH ();
  3363.   
  3364.     if (path_bits & VFFILEPATHBIT)
  3365. !     path_dirs[VFFILEPATH] = KPSE_VF_PATH ();
  3366.   }
  3367.   
  3368. --- 26,83 ----
  3369.   {
  3370.     if (path_bits & BIBINPUTPATHBIT)
  3371. !     path_dirs[BIBINPUTPATH] = kpse_init_format (kpse_bib_format);
  3372.   
  3373.     if (path_bits & BSTINPUTPATHBIT)
  3374. !     path_dirs[BSTINPUTPATH] = kpse_init_format (kpse_bst_format);
  3375.   
  3376.     if (path_bits & GFFILEPATHBIT)
  3377. !     path_dirs[GFFILEPATH] = kpse_init_format (kpse_gf_format);
  3378.   
  3379.     if (path_bits & MFBASEPATHBIT)
  3380. !     {
  3381. !       string path = DEFAULT_MFBASES;
  3382. !       path = kpse_expand_default (kpse_cnf_get (KPSE_BASE_ENVS), path);
  3383. !       path = kpse_expand_default (getenv (KPSE_BASE_ENVS), path);
  3384. !       path_dirs[MFBASEPATH] = kpse_path_expand (path);
  3385. !     }
  3386.   
  3387.     if (path_bits & MFINPUTPATHBIT)
  3388. !     path_dirs[MFINPUTPATH] = kpse_init_format (kpse_mf_format);
  3389.   
  3390.     if (path_bits & MFPOOLPATHBIT)
  3391. !     {
  3392. !       string path = DEFAULT_MFPOOL;
  3393. !       path = kpse_expand_default (kpse_cnf_get (KPSE_MFPOOL_ENVS), path);
  3394. !       path = kpse_expand_default (getenv (KPSE_MFPOOL_ENVS), path);
  3395. !       path_dirs[MFPOOLPATH] = kpse_path_expand (path);
  3396. !     }
  3397.   
  3398.     if (path_bits & PKFILEPATHBIT)
  3399. !     path_dirs[PKFILEPATH] = kpse_init_format (kpse_pk_format);
  3400.   
  3401.     if (path_bits & TEXFORMATPATHBIT)
  3402. !     {
  3403. !       string path = DEFAULT_TEXFORMATS;
  3404. !       path = kpse_expand_default (kpse_cnf_get (KPSE_FMT_ENVS), path);
  3405. !       path = kpse_expand_default (getenv (KPSE_FMT_ENVS), path);
  3406. !       path_dirs[TEXFORMATPATH] = kpse_path_expand (path);
  3407. !     }
  3408.   
  3409.     if (path_bits & TEXINPUTPATHBIT)
  3410. !     path_dirs[TEXINPUTPATH] = kpse_init_format (kpse_tex_format);
  3411.   
  3412.     if (path_bits & TEXPOOLPATHBIT)
  3413. !     {
  3414. !       string path = DEFAULT_TEXPOOL;
  3415. !       path = kpse_expand_default (kpse_cnf_get (KPSE_TEXPOOL_ENVS), path);
  3416. !       path = kpse_expand_default (getenv (KPSE_TEXPOOL_ENVS), path);
  3417. !       path_dirs[TEXPOOLPATH] = kpse_path_expand (path);
  3418. !     }
  3419.   
  3420.     if (path_bits & TFMFILEPATHBIT)
  3421. !     path_dirs[TFMFILEPATH] = kpse_init_format (kpse_tfm_format);
  3422.   
  3423.     if (path_bits & VFFILEPATHBIT)
  3424. !     path_dirs[VFFILEPATH] = kpse_init_format (kpse_vf_format);
  3425.   }
  3426.   
  3427. ***************
  3428. *** 72,76 ****
  3429.   {
  3430.     string found;  
  3431. !   string path = path_dirs[path_index];
  3432.     
  3433.     make_c_string (&name);
  3434. --- 95,99 ----
  3435.   {
  3436.     string found;  
  3437. !   const_string path = path_dirs[path_index];
  3438.     
  3439.     make_c_string (&name);
  3440. ***************
  3441. *** 79,83 ****
  3442.        have the dpi available separately, and anyway we don't care about
  3443.        having pktogf run MakeTeXPK, etc.  */
  3444. !   found = kpse_path_search (path, name);
  3445.   
  3446.     /* If we didn't find it, and we're looking for a font, maybe it's
  3447. --- 102,106 ----
  3448.        have the dpi available separately, and anyway we don't care about
  3449.        having pktogf run MakeTeXPK, etc.  */
  3450. !   found = kpse_path_search (path, name, true);
  3451.   
  3452.     /* If we didn't find it, and we're looking for a font, maybe it's
  3453. ***************
  3454. *** 89,96 ****
  3455.       {
  3456.         string *mapped_names;
  3457. !       static map_type fontmap = NULL;
  3458.         
  3459.         /* Fault in the mapping if necessary.  */
  3460. !       if (!fontmap)
  3461.           fontmap = map_create (path);
  3462.         
  3463. --- 112,119 ----
  3464.       {
  3465.         string *mapped_names;
  3466. !       static hash_table_type fontmap = { NULL, 0 };
  3467.         
  3468.         /* Fault in the mapping if necessary.  */
  3469. !       if (fontmap.size == 0)
  3470.           fontmap = map_create (path);
  3471.         
  3472. ***************
  3473. *** 102,106 ****
  3474.             while ((mapped_name = *mapped_names++) && !found)
  3475.               {
  3476. !               found = kpse_path_search (path, mapped_name);
  3477.               }
  3478.           }
  3479. --- 125,129 ----
  3480.             while ((mapped_name = *mapped_names++) && !found)
  3481.               {
  3482. !               found = kpse_path_search (path, mapped_name, true);
  3483.               }
  3484.           }
  3485. *** web2c/lib/texmf.c.save    Sun Dec  5 12:53:01 1993
  3486. --- web2c/lib/texmf.c    Fri Sep 23 22:33:56 1994
  3487. ***************
  3488. *** 33,37 ****
  3489.   #include <kpathsea/c-ctype.h>
  3490.   #include <kpathsea/c-pathch.h>
  3491. ! #include <kpathsea/tex-make.h>
  3492.   
  3493.   /* For `struct tm'.  */
  3494. --- 33,37 ----
  3495.   #include <kpathsea/c-ctype.h>
  3496.   #include <kpathsea/c-pathch.h>
  3497. ! #include <kpathsea/tex-file.h>
  3498.   
  3499.   /* For `struct tm'.  */
  3500. ***************
  3501. *** 74,77 ****
  3502. --- 74,79 ----
  3503.     dump_default_length = strlen (dump_default + 1);
  3504.   
  3505. +   kpse_set_progname(av[0]);
  3506.   #ifndef INI
  3507.     if (readyalready != 314159)
  3508. ***************
  3509. *** 99,103 ****
  3510.                               || getenv ("USE_MAKETEXMF")
  3511.                               || getenv ("MAKETEXMF");
  3512. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_mf_format]) = use_maketexmf;
  3513.     }
  3514.   #endif /* MF */
  3515. --- 101,105 ----
  3516.                               || getenv ("USE_MAKETEXMF")
  3517.                               || getenv ("MAKETEXMF");
  3518. !     kpse_format_info[kpse_mf_format].program_enabled_p = use_maketexmf;
  3519.     }
  3520.   #endif /* MF */
  3521. ***************
  3522. *** 110,115 ****
  3523.                                || getenv ("USE_MAKETEXTFM")
  3524.                                || getenv ("MAKETEXTFM");
  3525. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_tex_format]) = use_maketextex;
  3526. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_tfm_format]) = use_maketextfm;
  3527.     }
  3528.   #endif /* TeX */
  3529. --- 112,117 ----
  3530.                                || getenv ("USE_MAKETEXTFM")
  3531.                                || getenv ("MAKETEXTFM");
  3532. !     kpse_format_info[kpse_tex_format].program_enabled_p = use_maketextex;
  3533. !     kpse_format_info[kpse_tfm_format].program_enabled_p = use_maketextfm;
  3534.     }
  3535.   #endif /* TeX */
  3536. *** web2c/mf/Makefile.in.save    Thu Feb  3 04:48:35 1994
  3537. --- web2c/mf/Makefile.in    Sat Sep 24 02:08:29 1994
  3538. ***************
  3539. *** 46,52 ****
  3540.   libs = $(commono) $(LIBS)
  3541.   
  3542. ! x_include_flags = @x_include_flags@
  3543. ! x_lib_flags = @x_lib_flags@
  3544. ! x_extra_libs = @x_extra_libs@
  3545.   wlibs = @wlibs@
  3546.   LIBS = @LIBS@
  3547. --- 46,52 ----
  3548.   libs = $(commono) $(LIBS)
  3549.   
  3550. ! x_include_flags = @X_CFLAGS@
  3551. ! x_lib_flags = @X_LIBS@
  3552. ! x_extra_libs = @X_EXTRA_LIBS@
  3553.   wlibs = @wlibs@
  3554.   LIBS = @LIBS@
  3555. ***************
  3556. *** 72,77 ****
  3557.   # What to pass to submakes.
  3558.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  3559. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)' \
  3560. ! srcdir=$(srcdir)  
  3561.   
  3562.   
  3563. --- 72,76 ----
  3564.   # What to pass to submakes.
  3565.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  3566. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)'
  3567.   
  3568.   
  3569. -- 
  3570. End of web2c.kpathsea-2.1.patch
  3571.